vlib/v/checker/tests/overflow_int_signed_err.vv:2:2: warning: value `0xff` overflows `i8`, this will be considered hard error soon 1 | const _i8s = [ 2 | i8(0xff), // converted to -1 | ~~~~~~~~ 3 | i8(128), // converted to -128 4 | i8(-129), // converted to +127 vlib/v/checker/tests/overflow_int_signed_err.vv:3:2: warning: value `128` overflows `i8`, this will be considered hard error soon 1 | const _i8s = [ 2 | i8(0xff), // converted to -1 3 | i8(128), // converted to -128 | ~~~~~~~ 4 | i8(-129), // converted to +127 5 | i8(-0xff), // converted to +1 vlib/v/checker/tests/overflow_int_signed_err.vv:4:2: warning: value `-129` overflows `i8`, this will be considered hard error soon 2 | i8(0xff), // converted to -1 3 | i8(128), // converted to -128 4 | i8(-129), // converted to +127 | ~~~~~~~~ 5 | i8(-0xff), // converted to +1 6 | ] vlib/v/checker/tests/overflow_int_signed_err.vv:5:2: warning: value `-0xff` overflows `i8`, this will be considered hard error soon 3 | i8(128), // converted to -128 4 | i8(-129), // converted to +127 5 | i8(-0xff), // converted to +1 | ~~~~~~~~~ 6 | ] 7 | vlib/v/checker/tests/overflow_int_signed_err.vv:9:2: warning: value `0xffff` overflows `i16`, this will be considered hard error soon 7 | 8 | const _i16s = [ 9 | i16(0xffff), // converted to -1 | ~~~~~~~~~~~ 10 | i16(32768), // converted to -32768 11 | i16(-32769), // converted to +32767 vlib/v/checker/tests/overflow_int_signed_err.vv:10:2: warning: value `32768` overflows `i16`, this will be considered hard error soon 8 | const _i16s = [ 9 | i16(0xffff), // converted to -1 10 | i16(32768), // converted to -32768 | ~~~~~~~~~~ 11 | i16(-32769), // converted to +32767 12 | i16(-0xffff), // converted to +1 vlib/v/checker/tests/overflow_int_signed_err.vv:11:2: warning: value `-32769` overflows `i16`, this will be considered hard error soon 9 | i16(0xffff), // converted to -1 10 | i16(32768), // converted to -32768 11 | i16(-32769), // converted to +32767 | ~~~~~~~~~~~ 12 | i16(-0xffff), // converted to +1 13 | ] vlib/v/checker/tests/overflow_int_signed_err.vv:12:2: warning: value `-0xffff` overflows `i16`, this will be considered hard error soon 10 | i16(32768), // converted to -32768 11 | i16(-32769), // converted to +32767 12 | i16(-0xffff), // converted to +1 | ~~~~~~~~~~~~ 13 | ] 14 | vlib/v/checker/tests/overflow_int_signed_err.vv:16:2: warning: value `0xffffffff` overflows `int`, this will be considered hard error soon 14 | 15 | const _ints = [ 16 | int(0xffffffff), // converted to -1 | ~~~~~~~~~~~~~~~ 17 | int(2147483648), // converted to -2147483648 (overflow in 32-bit int) 18 | int(-2147483649), // converted to +2147483647 (overflow) vlib/v/checker/tests/overflow_int_signed_err.vv:17:2: warning: value `2147483648` overflows `int`, this will be considered hard error soon 15 | const _ints = [ 16 | int(0xffffffff), // converted to -1 17 | int(2147483648), // converted to -2147483648 (overflow in 32-bit int) | ~~~~~~~~~~~~~~~ 18 | int(-2147483649), // converted to +2147483647 (overflow) 19 | int(-0xffffffff), // converted to +1 vlib/v/checker/tests/overflow_int_signed_err.vv:18:2: warning: value `-2147483649` overflows `int`, this will be considered hard error soon 16 | int(0xffffffff), // converted to -1 17 | int(2147483648), // converted to -2147483648 (overflow in 32-bit int) 18 | int(-2147483649), // converted to +2147483647 (overflow) | ~~~~~~~~~~~~~~~~ 19 | int(-0xffffffff), // converted to +1 20 | ] vlib/v/checker/tests/overflow_int_signed_err.vv:19:2: warning: value `-0xffffffff` overflows `int`, this will be considered hard error soon 17 | int(2147483648), // converted to -2147483648 (overflow in 32-bit int) 18 | int(-2147483649), // converted to +2147483647 (overflow) 19 | int(-0xffffffff), // converted to +1 | ~~~~~~~~~~~~~~~~ 20 | ] 21 | vlib/v/checker/tests/overflow_int_signed_err.vv:23:2: warning: value `0xffffffff` overflows `i32`, this will be considered hard error soon 21 | 22 | const _i32s = [ 23 | i32(0xffffffff), // converted to -1 | ~~~~~~~~~~~~~~~ 24 | i32(2147483648), // converted to -2147483648 25 | i32(-2147483649), // converted to +2147483647 vlib/v/checker/tests/overflow_int_signed_err.vv:24:2: warning: value `2147483648` overflows `i32`, this will be considered hard error soon 22 | const _i32s = [ 23 | i32(0xffffffff), // converted to -1 24 | i32(2147483648), // converted to -2147483648 | ~~~~~~~~~~~~~~~ 25 | i32(-2147483649), // converted to +2147483647 26 | i32(-0xffffffff), // converted to +1 vlib/v/checker/tests/overflow_int_signed_err.vv:25:2: warning: value `-2147483649` overflows `i32`, this will be considered hard error soon 23 | i32(0xffffffff), // converted to -1 24 | i32(2147483648), // converted to -2147483648 25 | i32(-2147483649), // converted to +2147483647 | ~~~~~~~~~~~~~~~~ 26 | i32(-0xffffffff), // converted to +1 27 | ] vlib/v/checker/tests/overflow_int_signed_err.vv:26:2: warning: value `-0xffffffff` overflows `i32`, this will be considered hard error soon 24 | i32(2147483648), // converted to -2147483648 25 | i32(-2147483649), // converted to +2147483647 26 | i32(-0xffffffff), // converted to +1 | ~~~~~~~~~~~~~~~~ 27 | ] 28 | vlib/v/checker/tests/overflow_int_signed_err.vv:30:2: warning: value `0xffffffffffffffff` overflows `i64`, this will be considered hard error soon 28 | 29 | const _i64s = [ 30 | i64(0xffffffffffffffff), // converted to -1 | ~~~~~~~~~~~~~~~~~~~~~~~ 31 | i64(9223372036854775808), // converted to -9223372036854775808 32 | i64(-9223372036854775809), // converted to +9223372036854775807 vlib/v/checker/tests/overflow_int_signed_err.vv:31:2: warning: value `9223372036854775808` overflows `i64`, this will be considered hard error soon 29 | const _i64s = [ 30 | i64(0xffffffffffffffff), // converted to -1 31 | i64(9223372036854775808), // converted to -9223372036854775808 | ~~~~~~~~~~~~~~~~~~~~~~~~ 32 | i64(-9223372036854775809), // converted to +9223372036854775807 33 | i64(-0xffffffffffffffff), // converted to +1 vlib/v/checker/tests/overflow_int_signed_err.vv:32:2: warning: value `-9223372036854775809` overflows `i64`, this will be considered hard error soon 30 | i64(0xffffffffffffffff), // converted to -1 31 | i64(9223372036854775808), // converted to -9223372036854775808 32 | i64(-9223372036854775809), // converted to +9223372036854775807 | ~~~~~~~~~~~~~~~~~~~~~~~~~ 33 | i64(-0xffffffffffffffff), // converted to +1 34 | ] vlib/v/checker/tests/overflow_int_signed_err.vv:33:2: warning: value `-0xffffffffffffffff` overflows `i64`, this will be considered hard error soon 31 | i64(9223372036854775808), // converted to -9223372036854775808 32 | i64(-9223372036854775809), // converted to +9223372036854775807 33 | i64(-0xffffffffffffffff), // converted to +1 | ~~~~~~~~~~~~~~~~~~~~~~~~ 34 | ]