aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/func.c4
-rw-r--r--src/util.c6
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;