Permalink
Browse files

Cast, don't get; would be good to export this too

git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4396 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information...
1 parent 9a47edb commit a0faa60d1cf9533a9d40b93a2e7c50b3cdfca1e1 @jballanc jballanc committed Jul 31, 2010
Showing with 2 additions and 1 deletion.
  1. +1 −1 encoding.c
  2. +1 −0 include/ruby/encoding.h
View
@@ -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;
}
View
@@ -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);

0 comments on commit a0faa60

Please sign in to comment.