diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2025-10-27 10:22:04 +0100 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-10-27 09:22:40 +0000 |
| commit | 2a9d15b9699d15fe93249d9551a34de77908e5f0 (patch) | |
| tree | d4eaf4fb7acdea5f4496b7facb3acc78ba8f6fc5 /ext/json/parser | |
| parent | 14cbe0de8ba0736aa8f5c20b0eb9c51d71900cb3 (diff) | |
[ruby/json] parser.c: Fix indentation in json_decode_integer
https://github.com/ruby/json/commit/f228b30635
Diffstat (limited to 'ext/json/parser')
| -rw-r--r-- | ext/json/parser/parser.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/json/parser/parser.c b/ext/json/parser/parser.c index 2522c56224..538cddb6d6 100644 --- a/ext/json/parser/parser.c +++ b/ext/json/parser/parser.c @@ -790,11 +790,11 @@ static VALUE json_decode_large_integer(const char *start, long len) static inline VALUE json_decode_integer(const char *start, const char *end) { - long len = end - start; - if (RB_LIKELY(len < MAX_FAST_INTEGER_SIZE)) { - return fast_decode_integer(start, end); - } - return json_decode_large_integer(start, len); + long len = end - start; + if (RB_LIKELY(len < MAX_FAST_INTEGER_SIZE)) { + return fast_decode_integer(start, end); + } + return json_decode_large_integer(start, len); } static VALUE json_decode_large_float(const char *start, long len) |
