Message100235
Handling of long integers is broken for arguments to sqlite functions created with the create_function api. Integers passed to a sqlite function are always converted to int instead of long, which produces an incorrect value for integers outside the range of a int32 on a 32 bit machine. These failures cannot be reproduced on a 64 bit machine, since sizeof(long) == sizeof(long long).
I attached a program that demonstrates the failure. This program reports failures on a 32 bit machine, and all tests pass on a 64 bit machine. |
|
Date |
User |
Action |
Args |
2010-03-01 02:03:11 | BinaryMan32 | set | recipients:
+ BinaryMan32 |
2010-03-01 02:03:11 | BinaryMan32 | set | messageid: <1267408991.73.0.408537758811.issue8033@psf.upfronthosting.co.za> |
2010-03-01 02:03:09 | BinaryMan32 | link | issue8033 messages |
2010-03-01 02:03:09 | BinaryMan32 | create | |
|