mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: prompt error on implicit int overflow by literal (#6410)
This commit is contained in:
@ -168,8 +168,8 @@ fn test_splitmix64_u64_in_range() {
|
||||
}
|
||||
|
||||
fn test_splitmix64_int31() {
|
||||
max_u31 := 0x7FFFFFFF
|
||||
sign_mask := 0x80000000
|
||||
max_u31 := int(0x7FFFFFFF)
|
||||
sign_mask := int(0x80000000)
|
||||
for seed in seeds {
|
||||
mut rng := splitmix64.SplitMix64RNG{}
|
||||
rng.seed(seed)
|
||||
|
Reference in New Issue
Block a user