Skip to content

Commit

Permalink
Fix wrong union usage
Browse files Browse the repository at this point in the history
I should use struct instead of union to group variables! :<
  • Loading branch information
kou committed Oct 3, 2013
1 parent 9ecaf59 commit 5055e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ctx_impl.h
Expand Up @@ -176,7 +176,7 @@ struct _grn_ctx_impl {
msgpack_packer msgpacker;
#endif
#ifdef GRN_WITH_MRUBY
union {
struct {
mrb_state *state;
} mrb;
#endif
Expand Down

0 comments on commit 5055e7b

Please sign in to comment.