Skip to content

Commit 794e4a3

Browse files
byrootk0kubun
authored andcommitted
[ruby/json] Fix a -Wreturn-type warning
Fix: ruby/json#843 ruby/json@d3f7f0452b Co-Authored-By: Takashi Kokubun <[email protected]>
1 parent 94ddf47 commit 794e4a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/json/generator/generator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1846,7 +1846,7 @@ static VALUE cState_allow_duplicate_key_p(VALUE self)
18461846
return Qtrue;
18471847
case JSON_DEPRECATED:
18481848
return Qnil;
1849-
case JSON_RAISE:
1849+
default:
18501850
return Qfalse;
18511851
}
18521852
}

0 commit comments

Comments
 (0)