[DBD-SQLite] [rfc][patch] fix >32bit integer truncation on some machines [2/2]

kenichi ishigaki kishigaki at gmail.com
Sat Mar 24 13:55:17 GMT 2012


Applied both to the trunk.

Thanks,

Kenichi

2012/3/24 Yuriy Kaminskiy <yumkam at mail.ru>:
> Yuriy Kaminskiy wrote:
>> This cannot be right:
>>
>>> sqlite_set_result(pTHX_ sqlite3_context *context, SV *result, int is_error)
>>> {
>>> ...
>>>     else if ( SvIOK(result) ) {
>>>         sqlite3_result_int( context, SvIV(result));
>>> ...
>
> ... and this may truncate integer to 32-bit on some machines. Untested [my perl
> build unaffected] patch (on top of alternative 2, otherwise apply by hand) attached.
>
> _______________________________________________
> DBD-SQLite mailing list
> DBD-SQLite at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbd-sqlite
>



More information about the DBD-SQLite mailing list