1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

js: codegen & vlib fixes, replace the Game of Life CLI example (#12272)

This commit is contained in:
playX
2021-10-22 22:03:19 +03:00
committed by GitHub
parent 8a4756819a
commit 864d6eae6b
6 changed files with 107 additions and 23 deletions

View File

@ -4,7 +4,7 @@ module constants
pub const (
lower_mask = u64(0x00000000FFFFFFFF)
max_u32 = 0xFFFFFFFF
max_u64 = 0xFFFFFFFFFFFFFFFF
max_u64 = u64(0xFFFFFFFFFFFFFFFF)
max_u32_as_f32 = f32(max_u32) + 1
max_u64_as_f64 = f64(max_u64) + 1
u31_mask = u32(0x7FFFFFFF)