diff options
author | drh <> | 2023-07-08 17:42:24 +0000 |
---|---|---|
committer | drh <> | 2023-07-08 17:42:24 +0000 |
commit | 4c40b7b819bed28a63a04eed32882ee46bc826fc (patch) | |
tree | b00319119e990ed8ec1a6636bf9205a22f3eae1f /src | |
parent | bc532ae15fa1a1cd75f6042fa476bbe2c35c98f6 (diff) | |
download | sqlite-4c40b7b819bed28a63a04eed32882ee46bc826fc.tar.gz sqlite-4c40b7b819bed28a63a04eed32882ee46bc826fc.zip |
Always use the "LL" suffix on 64-bit integer literals.
FossilOrigin-Name: 07d95ed60f0a17ea13b4bc19c2ab2ec9052fedd27c9e1e57a1ec6e3a6470e5b7
Diffstat (limited to 'src')
-rw-r--r-- | src/func.c | 4 | ||||
-rw-r--r-- | src/util.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/func.c b/src/func.c index d6f3d175f..542d71a23 100644 --- a/src/func.c +++ b/src/func.c @@ -1704,7 +1704,7 @@ static void kahanBabuskaNeumaierStep( ** Add a (possibly large) integer to the running sum. */ static void kahanBabuskaNeumaierStepInt64(volatile SumCtx *pSum, i64 iVal){ - if( iVal<=-4503599627370496 || iVal>=+4503599627370496 ){ + if( iVal<=-4503599627370496LL || iVal>=+4503599627370496LL ){ i64 iBig, iSm; iSm = iVal % 16384; iBig = iVal - iSm; @@ -1722,7 +1722,7 @@ static void kahanBabuskaNeumaierInit( volatile SumCtx *p, i64 iVal ){ - if( iVal<=-4503599627370496 || iVal>=+4503599627370496 ){ + if( iVal<=-4503599627370496LL || iVal>=+4503599627370496LL ){ i64 iSm = iVal % 16384; p->rSum = (double)(iVal - iSm); p->rErr = (double)iSm; diff --git a/src/util.c b/src/util.c index ce0299706..409482d39 100644 --- a/src/util.c +++ b/src/util.c @@ -405,11 +405,11 @@ static void dekkerMul2(volatile double *x, double y, double yy){ double hx, hy; u64 m; memcpy(&m, (void*)&x[0], 8); - m &= 0xfffffffffc000000L; + m &= 0xfffffffffc000000LL; memcpy(&hx, &m, 8); tx = x[0] - hx; memcpy(&m, &y, 8); - m &= 0xfffffffffc000000L; + m &= 0xfffffffffc000000LL; memcpy(&hy, &m, 8); ty = y - hy; p = hx*hy; @@ -963,7 +963,7 @@ void sqlite3FpDecode(FpDecode *p, double r, int iRound, int mxRound){ memcpy(&v,&r,8); e = v>>52; if( (e&0x7ff)==0x7ff ){ - p->isSpecial = 1 + (v!=0x7ff0000000000000L); + p->isSpecial = 1 + (v!=0x7ff0000000000000LL); p->n = 0; p->iDP = 0; return; |