Skip to content

Commit bfea515

Browse files
committed
Use actual constants for masks
1 parent 9d22cc4 commit bfea515

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/json/ext/vendor/jeaiii-ltoa.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ static struct pair digits_fd[100] = {
8181

8282
#undef NUL
8383

84-
static u64_t mask24 = (u64(1) << 24) - 1;
85-
static u64_t mask32 = (u64(1) << 32) - 1;
86-
static u64_t mask57 = (u64(1) << 57) - 1;
84+
static const u64_t mask24 = (u64(1) << 24) - 1;
85+
static const u64_t mask32 = (u64(1) << 32) - 1;
86+
static const u64_t mask57 = (u64(1) << 57) - 1;
8787

8888
static
8989
char* to_text_from_ulong(char* b, u64_t n)

0 commit comments

Comments
 (0)