mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-03 16:53:36 +03:00
A proposed patch for working around a bug in the optimizer for the HP compiler
found on HP/UX Itanium. FossilOrigin-Name: 8a171548e4f665f03d00af6dcb46669a4a78fad5
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