Message100235
| Author |
BinaryMan32 |
| Recipients |
BinaryMan32 |
| Date |
2010年03月01日.02:03:07 |
| SpamBayes Score |
5.966765e-10 |
| Marked as misclassified |
No |
| Message-id |
<1267408991.73.0.408537758811.issue8033@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|