Fix 32-bit integers #94

Merged
sim0n00ps merged 2 commits from whimsical-c4lic0/OF-DL:fix-32-bit-integers into master 2025-12-13 19:30:28 +00:00
Collaborator

Address #92

  • Converts all ID's from integers to longs
  • Converts all sizes from integers to longs (not needed at this time but addresses what could be a problem in the future)
Address https://git.ofdl.tools/sim0n00ps/OF-DL/issues/92 - Converts all ID's from integers to longs - Converts all sizes from integers to longs (not needed at this time but addresses what could be a problem in the future)
whimsical-c4lic0 added 2 commits 2025-12-13 09:01:31 +00:00
First-time contributor

Just playing around with this, I had been concerned about it breaking the DB files, since the IDs are stored as integers there too. But it looks like SQLite's dynamic typing system can automatically handle the expansion from 32-bit to 64-bit integers, so everything looks good there.

Just playing around with this, I had been concerned about it breaking the DB files, since the IDs are stored as integers there too. But it looks like SQLite's dynamic typing system can automatically handle the expansion from 32-bit to 64-bit integers, so everything looks good there.
Author
Collaborator

Just playing around with this, I had been concerned about it breaking the DB files, since the IDs are stored as integers there too. But it looks like SQLite's dynamic typing system can automatically handle the expansion from 32-bit to 64-bit integers, so everything looks good there.

I had the same concern as well since I only have a basic knowledge of sqlite types, but yeah, all integer like types result in the same sqlite type regardless of the size. For anyone curious, the docs detail this in section 3.1.1 on this page: https://www.sqlite.org/datatype3.html

> Just playing around with this, I had been concerned about it breaking the DB files, since the IDs are stored as integers there too. But it looks like SQLite's dynamic typing system can automatically handle the expansion from 32-bit to 64-bit integers, so everything looks good there. I had the same concern as well since I only have a basic knowledge of sqlite types, but yeah, all integer like types result in the same sqlite type regardless of the size. For anyone curious, the docs detail this in section 3.1.1 on this page: https://www.sqlite.org/datatype3.html
melithine approved these changes 2025-12-13 19:12:19 +00:00
melithine left a comment
Collaborator

Works for me.

Works for me.
sim0n00ps merged commit 34f055b00e into master 2025-12-13 19:30:28 +00:00
whimsical-c4lic0 deleted branch fix-32-bit-integers 2025-12-13 20:33:39 +00:00
Sign in to join this conversation.
No description provided.