gcc 4.7.0 error : 0x80000000 does not fit into int32_t #1659

Closed
wants to merge 1 commit into
from
View
@@ -274,7 +274,7 @@ namespace rubinius {
return str;
}
- static const int32_t utf8_limits[] = {
+ static const uint32_t utf8_limits[] = {
0x0, /* 1 */
0x80, /* 2 */
0x800, /* 3 */
@@ -294,7 +294,7 @@ namespace rubinius {
for(; count > 0 && bytes < bytes_end; count--) {
native_int remainder = bytes_end - bytes;
- int32_t c = *bytes++ & 0xff, value = c;
+ uint32_t c = *bytes++ & 0xff, value = c;
int n = 0;
length = 1;
View
@@ -274,7 +274,7 @@ namespace rubinius {
return str;
}
- static const int32_t utf8_limits[] = {
+ static const uint32_t utf8_limits[] = {
0x0, /* 1 */
0x80, /* 2 */
0x800, /* 3 */
@@ -294,7 +294,7 @@ namespace rubinius {
for(; count > 0 && bytes < bytes_end; count--) {
native_int remainder = bytes_end - bytes;
- int32_t c = *bytes++ & 0xff, value = c;
+ uint32_t c = *bytes++ & 0xff, value = c;
int n = 0;
length = 1;