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

expression: set integer literals as int by default

This commit is contained in:
SleepyRoy
2020-03-24 03:05:37 +08:00
committed by GitHub
parent 5c9cbae10d
commit 67ba56c65c
14 changed files with 788 additions and 793 deletions

View File

@@ -1,8 +1,8 @@
module fnv1a
const (
fnv64_prime = 1099511628211
fnv64_offset_basis = 14695981039346656037
fnv64_prime = u64(1099511628211)
fnv64_offset_basis = u64(14695981039346656037)
fnv32_offset_basis = u32(2166136261)
fnv32_prime = u32(16777619)
)

View File

@@ -21,11 +21,11 @@ fn C.wyhash(byteptr, u64, u64) u64
const (
wyp0 = 0xa0761d6478bd642f
wyp1 = 0xe7037ed1a0b428db
wyp2 = 0x8ebc6af09c88c6e3
wyp3 = 0x589965cc75374cc3
wyp4 = 0x1d8e4e27c47d124f
wyp0 = u64(0xa0761d6478bd642f)
wyp1 = u64(0xe7037ed1a0b428db)
wyp2 = u64(0x8ebc6af09c88c6e3)
wyp3 = u64(0x589965cc75374cc3)
wyp4 = u64(0x1d8e4e27c47d124f)
)
[inline]