File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -62,3 +62,16 @@ sqlite3ext.h
62
62
#define SQLITE_ENABLE_FTS3_PARENTHESIS 1
63
63
#define SQLITE_ENABLE_RTREE 1
64
64
#define SQLITE_USE_URI 1
65
+
66
+ 4. If you get compile errors like C2059 'bad suffix on number' on older compilers, remove the LL suffix from constants.
67
+ For example, change:
68
+
69
+ && i >= -2251799813685248LL && i < 2251799813685248LL);
70
+
71
+ to:
72
+
73
+ && i >= -2251799813685248 && i < 2251799813685248);
74
+
75
+ This currently happens on four lines in the source in sqlite3.c.
76
+ (Visual Studio 6.0 uses a suffix of i64 or ui64 instead of LL or ULL).
77
+
Original file line number Diff line number Diff line change @@ -32398,7 +32398,7 @@ SQLITE_PRIVATE int sqlite3GetUInt32(const char *z, u32 *pI){
32398
32398
int i;
32399
32399
for(i=0; sqlite3Isdigit(z[i]); i++){
32400
32400
v = v*10 + z[i] - '0';
32401
- if( v>4294967296LL ){ *pI = 0; return 0; }
32401
+ if( v>4294967296ui64 ){ *pI = 0; return 0; }
32402
32402
}
32403
32403
if( i==0 || z[i]!=0 ){ *pI = 0; return 0; }
32404
32404
*pI = (u32)v;
@@ -77210,7 +77210,7 @@ SQLITE_PRIVATE int sqlite3RealSameAsInt(double r1, sqlite3_int64 i){
77210
77210
double r2 = (double)i;
77211
77211
return r1==0.0
77212
77212
|| (memcmp(&r1, &r2, sizeof(r1))==0
77213
- && i >= -2251799813685248LL && i < 2251799813685248LL );
77213
+ && i >= -2251799813685248 && i < 2251799813685248 );
77214
77214
}
77215
77215
77216
77216
/*
@@ -88874,7 +88874,7 @@ case OP_Affinity: {
88874
88874
testcase( pIn1->u.i==140737488355327LL );
88875
88875
testcase( pIn1->u.i==-140737488355328LL );
88876
88876
testcase( pIn1->u.i==-140737488355329LL );
88877
- if( pIn1->u.i<=140737488355327LL && pIn1->u.i>=-140737488355328LL ){
88877
+ if( pIn1->u.i<=140737488355327 && pIn1->u.i>=-140737488355328 ){
88878
88878
pIn1->flags |= MEM_IntReal;
88879
88879
pIn1->flags &= ~MEM_Int;
88880
88880
}else{
@@ -89076,7 +89076,7 @@ case OP_MakeRecord: {
89076
89076
}else if( uu<=2147483647 ){
89077
89077
nData += 4;
89078
89078
pRec->uTemp = 4;
89079
- }else if( uu<=140737488355327LL ){
89079
+ }else if( uu<=140737488355327 ){
89080
89080
nData += 6;
89081
89081
pRec->uTemp = 5;
89082
89082
}else{
You can’t perform that action at this time.
0 commit comments