From f687c0728c05cad01045e8be56df30b402183f37 Mon Sep 17 00:00:00 2001 From: rehans Date: Wed, 2 Nov 2022 11:20:10 +0100 Subject: [PATCH] Use ULL (unsigned long long) instead of UL (#1509) --- src/HttpParser.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/HttpParser.h b/src/HttpParser.h index 263283d..c9bbc3b 100644 --- a/src/HttpParser.h +++ b/src/HttpParser.h @@ -214,15 +214,15 @@ private: } static inline uint64_t hasLess(uint64_t x, uint64_t n) { - return (((x)-~0UL/255*(n))&~(x)&~0UL/255*128); + return (((x)-~0ULL/255*(n))&~(x)&~0ULL/255*128); } static inline uint64_t hasMore(uint64_t x, uint64_t n) { - return (( ((x)+~0UL/255*(127-(n))) |(x))&~0UL/255*128); + return (( ((x)+~0ULL/255*(127-(n))) |(x))&~0ULL/255*128); } static inline uint64_t hasBetween(uint64_t x, uint64_t m, uint64_t n) { - return (( (~0UL/255*(127+(n))-((x)&~0UL/255*127)) &~(x)& (((x)&~0UL/255*127)+~0UL/255*(127-(m))) )&~0UL/255*128); + return (( (~0ULL/255*(127+(n))-((x)&~0ULL/255*127)) &~(x)& (((x)&~0ULL/255*127)+~0ULL/255*(127-(m))) )&~0ULL/255*128); } static inline bool notFieldNameWord(uint64_t x) {