summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
-rw-r--r--ext/json/fbuffer/fbuffer.h4
-rw-r--r--ext/json/vendor/jeaiii-ltoa.h3
2 files changed, 3 insertions, 4 deletions
@@ -186,7 +186,7 @@ static void fbuffer_append_long(FBuffer *fb, long number)
* the number of resulting characters.
*
* We do know, however, that the `number` argument is always in the
- * range 0xc000000000000000 to 0x3fffffffffffffff, or, in decimal,
* -4611686018427387904 to 4611686018427387903. The max number of chars
* generated is therefore 20 (including a potential sign character).
*/
@@ -198,7 +198,7 @@ static void fbuffer_append_long(FBuffer *fb, long number)
if (number < 0) {
fbuffer_append_reserved_char(fb, '-');
- /*
* Since number is always > LONG_MIN, `-number` will not overflow
* and is always the positive abs() value.
*/
@@ -87,7 +87,7 @@ static u64_t mask24 = (u64(1) << 24) - 1;
static u64_t mask32 = (u64(1) << 32) - 1;
static u64_t mask57 = (u64(1) << 57) - 1;
-static
char* to_text_from_ulong(char* b, u64_t n) {
if (n < u32(1e2))
{
@@ -254,4 +254,3 @@ char* to_text_from_ulong(char* b, u64_t n) {
#pragma GCC diagnostic pop
#endif // JEAIII_TO_TEXT_H_
-