diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-04-20 12:33:49 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-04-20 12:33:49 -0700 |
commit | 329352cda438729a240ff450338f514938d74ba6 (patch) | |
tree | eaf61da3581bcbb0102a39d62b2d312f7040cb41 | |
parent | 846a93684d2d81ef102717004cd076c1b93544f7 (diff) | |
download | ffi-yajl-329352cda438729a240ff450338f514938d74ba6.tar.gz |
remove unnecessary cast
-rw-r--r-- | ext/ffi_yajl/ext/parser/parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ffi_yajl/ext/parser/parser.c b/ext/ffi_yajl/ext/parser/parser.c index e846c06..a5d2e9a 100644 --- a/ext/ffi_yajl/ext/parser/parser.c +++ b/ext/ffi_yajl/ext/parser/parser.c @@ -24,7 +24,7 @@ void set_value(CTX *ctx, VALUE val) { rb_ary_push(last, val); break; case T_HASH: - if ( ((CTX *)ctx)->uniqueKeyChecking ) { + if ( ctx->uniqueKeyChecking ) { ID sym_has_key = rb_intern("has_key?"); if ( rb_funcall(last, sym_has_key, 1, key) == Qtrue ) { rb_raise(cParseError, "repeated key: %s", RSTRING_PTR(key)); |