Re: [sqlite] Thoughts about the sqlite3IntFloatCompare function from the vdbeaux.c file.

2018-05-18 Thread Richard Hipp
Thanks for the observations. Changes have been checked in. On 5/18/18, Abroży Nieprzełoży wrote: > > 1: static int sqlite3IntFloatCompare(i64 i, double r){ > 2: if( sizeof(LONGDOUBLE_TYPE)>8 ){ > 3:

Re: [sqlite] Thoughts about the sqlite3IntFloatCompare function from the vdbeaux.c file.

2018-05-18 Thread Abroży Nieprzełoży
Some test: https://ideone.com/zkHHty 2018-05-18 13:36 GMT+02:00, Abroży Nieprzełoży : > > 1: static int sqlite3IntFloatCompare(i64 i, double r){ > 2: if( sizeof(LONGDOUBLE_TYPE)>8 ){ > 3:

[sqlite] Thoughts about the sqlite3IntFloatCompare function from the vdbeaux.c file.

2018-05-18 Thread Abroży Nieprzełoży
1: static int sqlite3IntFloatCompare(i64 i, double r){ 2: if( sizeof(LONGDOUBLE_TYPE)>8 ){ 3: LONGDOUBLE_TYPE x = (LONGDOUBLE_TYPE)i; 4: if( xr ) return +1; 6: return 0; 7: }else{ 8: i64 y; 9: double s; 10: