language changes: an array size now needs to be uint.

This commit is contained in:
Kang Seonghoon 2014-08-19 21:52:58 +09:00
parent f1931ad21e
commit 86259a120f
1 changed files with 2 additions and 2 deletions

View File

@ -929,7 +929,7 @@ mod internals {
pub static MAX_MDL: u32 = (12 << 6) | (31 << 1) | 1; pub static MAX_MDL: u32 = (12 << 6) | (31 << 1) | 1;
static XX: i8 = -128; static XX: i8 = -128;
static MDL_TO_OL: [i8, ..MAX_MDL+1] = [ static MDL_TO_OL: [i8, ..(MAX_MDL as uint + 1u)] = [
XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX,
XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX,
XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX, XX,
@ -984,7 +984,7 @@ mod internals {
98,100, 98,100, 98,100, 98,100, 98,100, 98,100, 98,100, 98,100, // 12 98,100, 98,100, 98,100, 98,100, 98,100, 98,100, 98,100, 98,100, // 12
]; ];
static OL_TO_MDL: [u8, ..MAX_OL+1] = [ static OL_TO_MDL: [u8, ..(MAX_OL as uint + 1u)] = [
0, 0, // 0 0, 0, // 0
64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,