Skip to content

Commit

Permalink
Cast, don't get; would be good to export this too
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4396 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information
jballanc committed Jul 31, 2010
1 parent 9a47edb commit a0faa60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion encoding.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ rb_to_encoding_index(VALUE enc)
return -1;
}
else {
int idx = index_of_encoding(rb_enc_get(enc));
int idx = index_of_encoding((rb_encoding_t *)enc);
if (idx >= 0) {
return idx;
}
Expand Down
1 change: 1 addition & 0 deletions include/ruby/encoding.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ rb_encoding *rb_utf8_encoding(void);
rb_encoding *rb_usascii_encoding(void);
rb_encoding *rb_locale_encoding(void);
rb_encoding *rb_default_external_encoding(void);
rb_encoding *rb_default_internal_encoding(void);
int rb_usascii_encindex(void);
int rb_ascii8bit_encindex(void);
VALUE rb_enc_default_external(void);
Expand Down

0 comments on commit a0faa60

Please sign in to comment.