summaryrefslogtreecommitdiff
path: root/ext/json
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2025-08-24 15:22:31 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-08-27 10:01:52 +0900
commitf6823936fa2ebfc4372e44499237235ae17f0bd9 (patch)
tree0ca6b28a37a61da30d7b8126ce279b9f9a69b1a4 /ext/json
parent4d6b1241f628392cad79c8aef1477445514135f2 (diff)
[ruby/json] parser.c: Remove useless dereference
https://github.com/ruby/json/commit/2d63648c0a
Diffstat (limited to 'ext/json')
-rw-r--r--ext/json/parser/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/parser/parser.c b/ext/json/parser/parser.c
index 1e6ee753f0..496a769206 100644
--- a/ext/json/parser/parser.c
+++ b/ext/json/parser/parser.c
@@ -975,7 +975,7 @@ static inline bool FORCE_INLINE string_scan(JSON_ParserState *state)
if (RB_UNLIKELY(string_scan_table[(unsigned char)*state->cursor])) {
return 1;
}
- *state->cursor++;
+ state->cursor++;
}
return 0;
}