Permalink
Browse files

no c99 in headers used by C extensions

git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5116 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information...
1 parent f25d156 commit 1893ab08ebc3562508ee3e7257c3926283a1d35a @lrz lrz committed Jan 5, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 encoding.h
View
@@ -316,7 +316,8 @@ rb_str_get_uchars(VALUE str, rb_str_uchars_buf_t *buf)
if (rstr->encoding->ascii_compatible && str_is_ascii_only(rstr)
&& rstr->length_in_bytes < STR_UCHARS_STATIC_BUFSIZE) {
// Fast path.
- for (long i = 0; i < rstr->length_in_bytes; i++) {
+ long i;
+ for (i = 0; i < rstr->length_in_bytes; i++) {
buf->static_buf[i] = rstr->bytes[i];
}
buf->chars = buf->static_buf;

0 comments on commit 1893ab0

Please sign in to comment.