1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Fix the build for when -DSQLITE_SMALL_STACK is used.

FossilOrigin-Name: b9eda2249ab5cf523093e4849c317d9a4b1743f7e15d96bdd6bb6cc423302914
This commit is contained in:
drh
2019-07-30 21:00:13 +00:00
parent 2ad07d96b6
commit 9c3bb59f76
3 changed files with 21 additions and 21 deletions

View File

@@ -2984,37 +2984,37 @@ case OP_MakeRecord: {
}else if( pRec->flags & (MEM_Int|MEM_IntReal) ){
/* Figure out whether to use 1, 2, 4, 6 or 8 bytes. */
i64 i = pRec->u.i;
u64 u;
u64 uu;
testcase( pRec->flags & MEM_Int );
testcase( pRec->flags & MEM_IntReal );
if( i<0 ){
u = ~i;
uu = ~i;
}else{
u = i;
uu = i;
}
nHdr++;
testcase( u==127 ); testcase( u==128 );
testcase( u==32767 ); testcase( u==32768 );
testcase( u==8388607 ); testcase( u==8388608 );
testcase( u==2147483647 ); testcase( u==2147483648 );
testcase( u==140737488355327LL ); testcase( u==140737488355328LL );
if( u<=127 ){
testcase( uu==127 ); testcase( uu==128 );
testcase( uu==32767 ); testcase( uu==32768 );
testcase( uu==8388607 ); testcase( uu==8388608 );
testcase( uu==2147483647 ); testcase( uu==2147483648 );
testcase( uu==140737488355327LL ); testcase( uu==140737488355328LL );
if( uu<=127 ){
if( (i&1)==i && file_format>=4 ){
pRec->uTemp = 8+(u32)u;
pRec->uTemp = 8+(u32)uu;
}else{
nData++;
pRec->uTemp = 1;
}
}else if( u<=32767 ){
}else if( uu<=32767 ){
nData += 2;
pRec->uTemp = 2;
}else if( u<=8388607 ){
}else if( uu<=8388607 ){
nData += 3;
pRec->uTemp = 3;
}else if( u<=2147483647 ){
}else if( uu<=2147483647 ){
nData += 4;
pRec->uTemp = 4;
}else if( u<=140737488355327LL ){
}else if( uu<=140737488355327LL ){
nData += 6;
pRec->uTemp = 5;
}else{