mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-02 05:54:29 +03:00
Work around a sign-extension bug in the optimizer on the HP C compiler that
comes with HP/UX. FossilOrigin-Name: 46c36b1543d7a8156eaa866c67080526153fb10d
This commit is contained in:
@@ -3319,6 +3319,10 @@ u32 sqlite3VdbeSerialGet(
|
||||
/* EVIDENCE-OF: R-01849-26079 Value is a big-endian 32-bit
|
||||
** twos-complement integer. */
|
||||
pMem->u.i = FOUR_BYTE_INT(buf);
|
||||
#ifdef __HP_cc
|
||||
/* Work around a sign-extension bug in the HP compiler for HP/UX */
|
||||
if( buf[0]&0x80 ) pMem->u.i |= 0xffffffff80000000LL;
|
||||
#endif
|
||||
pMem->flags = MEM_Int;
|
||||
testcase( pMem->u.i<0 );
|
||||
return 4;
|
||||
|
||||
Reference in New Issue
Block a user