Commit graph

57 commits

Author SHA1 Message Date
kbkpbot
e650d6b7f0
cgen: fix big IntegerLiteral LL postfix (fix #25269) (#25275) 2025-09-10 09:45:40 +03:00
Laurent Cheylus
35d33ff309
builtin: fix tests for int (avoid new V warning) (#24528) 2025-05-20 15:54:01 +03:00
ChAoS_UnItY (Kyle Lin)
9f3f1291e8
checker: fix signed integer literal overflow error, when most significant bit occupies signed bit (fix #23782) (#23919) 2025-03-13 17:29:44 +02:00
Delyan Angelov
e72c9d0e87
builtin: add int_min/2 and int_max/2 + tests 2024-11-18 22:36:09 +02:00
Alexander Medvednikov
f09826e928 all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
Turiiya
9051ac8921
all: fix typos (#19634) 2023-10-23 21:21:15 +03:00
shove
11a8a46ade
tests: cleanup test cases (#19104) 2023-08-13 13:36:08 +03:00
Delyan Angelov
18e737aee2 builtin,tests: fix int_test.v on macos, m1 2022-08-17 17:18:10 +03:00
Delyan Angelov
4a71b27c52
ci: add test_byte_vs_u8 to int_test.v 2022-04-15 21:42:07 +03:00
Alexander Medvednikov
fbb9e65c0f all: ~500 more byte=>u8 2022-04-15 18:25:45 +03:00
Alexander Medvednikov
d4a0d6f73c all: byte => u8 2022-04-15 14:58:56 +03:00
yuyi
a0a1807e2b
builtin: add charptr str() and change string format (#12973) 2021-12-30 23:34:24 +03:00
spaceface
d13fe7843c
v: fix build and failing tests on arm64 (#12840) 2021-12-15 09:00:38 +02:00
Wertzui123
e3d379a1eb
builtin: add byte.repeat() and rune.repeat() (#12007) 2021-09-30 09:32:20 +03:00
penguindark
fde934cd93
builtin: optimize hex() (#11261) 2021-08-22 11:10:24 +03:00
Nick Treleaven
cbefe6c32f
parser: warn about old use of typeof (#7923) 2021-01-07 20:32:02 +01:00
Daniel Däschle
abc98c273c
parser: require assign on type alias (#6477) 2020-09-25 12:02:32 +02:00
Henrixounez
5086fd537c
checker: prompt error on implicit int overflow by literal (#6410) 2020-09-20 16:29:01 +02:00
Henrixounez
c1f04d8c72
builtin: fix min value for int_str (#6411) 2020-09-18 12:56:16 +03:00
Duarte Roso
055117dc5f
builtin: make byte.hex() two digits format (#5886) 2020-08-01 23:06:08 +02:00
Swastik Baranwal
8b66816bdc
scanner: more checks for _ as num_sep (#5992) 2020-07-28 16:09:19 +10:00
Swastik Baranwal
f3a505b558
scanner: add check for _ in num literals (#5849) 2020-07-16 17:29:07 +03:00
Swastik Baranwal
c3bdacbf04
doc: add info about _ separator in literals (#5823) 2020-07-14 15:46:13 +02:00
Delyan Angelov
3703ade9f1 doc: add a Numbers section. Add tests for 0b prefixed integer literals too 2020-07-14 11:10:43 +03:00
Uwe Krüger
cf9498ef6b
cgen: use standard checks for float comparisons 2020-06-04 19:47:41 +02:00
Uwe Krüger
013fdb8a4b
checker: restrict numeric promotions to cases where no data is lost 2020-05-27 05:42:48 +02:00
Uwe Krüger
fd4d28b7b6
tests: update for stricter type checks 2020-05-24 21:07:32 +02:00
Enzo Baldisserri
f44a40eee0
checker: check incorrect names 2020-05-16 16:12:23 +02:00
ka-weihe
a72f3ed0c7
builtin: voidptr.str() and byteptr.str() 2020-05-04 13:20:18 +02:00
Alexey
0c63f5c80d
builtin: test left/right shift precedence 2020-04-14 19:38:11 +02:00
Alexander Medvednikov
eb78396307 parser: fix prefix precedence 2020-04-08 13:53:11 +02:00
Delyan Angelov
3bad02abdd cgen: do comparison of f32/f64 values for == and != by calling f64_eq(a,b) and f64_ne(a,b) 2020-04-08 03:51:06 +03:00
Alexey
6309e699e5
builtin: add operator precedence test 2020-04-02 19:02:49 +02:00
penguindark
83289d74a7
builtin: fix int to hex 2020-04-02 17:16:17 +02:00
Alexander Medvednikov
437bba5566 cgen: generate fn main for tests; fix consts bug 2020-03-24 22:24:03 +01:00
SleepyRoy
67ba56c65c
expression: set integer literals as int by default 2020-03-23 20:05:37 +01:00
SleepyRoy
f798a0937a
expression: set floats as f64 by default 2020-03-19 07:24:49 +01:00
penguindark
630913d872
builtin: new str(), hex() functions without C.printf 2020-03-11 00:38:11 +01:00
SleepyRoy
7d2eb4f604
scanner: make 0o prefix the only way to define octals 2020-02-23 23:43:04 +01:00
yuyi
adb1d3f8c9
scanner: enable 0oxx to handle octals 2020-02-23 12:33:07 +01:00
Alexander Medvednikov
18c440c990 fix int_test.v 2020-02-07 22:16:14 +01:00
Alexander Medvednikov
80daaff874 v2: scopes, or, in, hex 2020-02-04 17:44:39 +01:00
Alexander Medvednikov
cba6a6fdea as casting 2019-12-30 10:47:34 +01:00
Alexander Medvednikov
cb46bf314e get_type.v 2019-12-05 18:48:39 +03:00
Alexander Medvednikov
ff80e3a5fa i8 print test + $if mac => $if macos 2019-12-03 16:09:43 +03:00
Alexander Medvednikov
f724a956b3 parser: fix a & b == c precedence 2019-11-29 22:42:32 +03:00
hazohelet
56e4ed1e6b compiler: float comparison uses machine epsilon by default 2019-10-01 22:38:36 +03:00
hazohelet
6d483c0a56 parser: float1 == float2 uses machine epsilon by default 2019-09-29 18:27:53 +03:00
Alexander Medvednikov
b4207e1be7 compiler: allow "u64_var == 0" without casting the const literal 2019-09-23 02:14:10 +03:00
Joe Conigliaro
1f67d9edd8 fix bugs breaking tests 2019-09-03 15:21:52 +03:00