Commit Graph

235 Commits

Author SHA1 Message Date
tersec 86621eced1
remove pre-Nim 1.2 support (#127) 2023-06-05 11:42:36 +00:00
jangko 94fc521ee0
remove appveyor and travis scripts 2023-04-15 12:17:00 +07:00
tersec 3d1bd2bfbd
test both refc and ORC in post-1.6 Nim versions (#124) 2023-04-14 00:41:31 +00:00
tersec 5bed1111ab
use Nim 2.0 in CI (#123) 2023-04-07 15:28:22 +00:00
jangko eb1f32c675
upgrade github actions to v3 2023-02-23 12:31:46 +07:00
jangko 493f31de63
reduce compiler warnings 2023-02-23 12:09:45 +07:00
tersec 3472a16fbc
avoid deprecation warnings on Nim 1.6 when using (#121) 2023-02-07 13:41:40 +01:00
G f36623998f
fix(skipPrefixes): fix erroneous strip of 0b in hex numbers (#120)
* fix(skipPrefixes): fix erroneous strip of 0b in hex numbers

* refactor(skipPrefixes): normalize radix checks

* feat(stint): add tests for bin, oct, hex string conversions

* fix(stint): fix cast

* fix(stint): fix typo

* fix(stint): alternative format

* feat(stint): add test

* fix(stint): fix stint width in test
2022-10-03 12:15:45 +02:00
tersec d1acb42743
update GitHub Actions CI images from deprecated Ubuntu 18.04 to 20.04 (#119) 2022-08-18 08:18:24 +00:00
Dustin Brody 27a7608f33
--styleCheck:error iff Nim >= 1.6 2022-07-22 10:40:38 +00:00
Dustin Brody e726bfd969
update to supported macOS GitHub CI image 2022-07-22 09:03:57 +00:00
Jacek Sieka c05f75a8da
comment style fix 2022-04-07 09:53:11 +02:00
Kim De Mey e656ad40d1
Enable --styleCheck:usages (#118) 2022-02-24 20:09:53 +01:00
Mamy Ratsimbazafy ddfa6c608a
Fix 32-bit failure on Nim 1.6 (#116)
* Nim 1.6 compiletime can now be affected by https://github.com/status-im/nim-stint/issues/92 ?

* seems like it happens on runtime too
2022-01-13 12:04:26 +01:00
Ștefan Talpalaru e17113fb31
CI: test with multiple Nim versions (#114)
* CI: test with multiple Nim versions
2022-01-12 03:20:04 +01:00
jangko 036c71d06a
ci: bump mingw from v8.1.0 to v11.2.0 2021-10-30 13:09:21 +07:00
Mamy Ratsimbazafy 49d11d61b8
RangeError are actually defect and not catchable. (#111)
* RangeError are actually defect and not catchable.

* Don't use range types at runtime they throw RangeDefect
2021-10-08 10:08:56 +02:00
Mamy Ratsimbazafy 06e5c4829c
Parsing should raise CatchableError for user inputs (#110) 2021-10-06 18:53:52 +02:00
Timothee Cour 484031fdff fix stint for https://github.com/nim-lang/Nim/pull/18050 2021-07-01 13:16:07 +03:00
Ștefan Talpalaru ca897811df
CI: refactor Nim compiler caching (#108) 2021-06-03 01:55:01 +02:00
andri lim bae3fc6ee4
Merge pull request #106 from status-im/github_action
add github action
2021-01-07 09:26:03 +07:00
jangko 89d6832a53
add github action 2020-12-24 11:27:58 +07:00
zah 9e49b00148 Define a hash function in order to support Stint keys in hash tables (#102)
* Hash stint values as byte blobs; Add a basic test for using stint keys in a table
2019-12-18 14:02:16 +01:00
andri lim f0da0406f0 tidying up range check in constructor 2019-12-13 16:19:41 +02:00
andri lim d98b77c88d fixes #94, implement conversion constructor 2019-12-13 16:19:41 +02:00
andri lim 25c2604b4b cosmetics changes 2019-10-25 19:54:41 +03:00
andri lim 9ec615f0ef disable powmod at compile time 2019-10-25 19:54:41 +03:00
andri lim ea82fdfb39 add more test for 'mod' operation 2019-10-25 19:54:41 +03:00
andri lim 2b5d083dac fixes 32bit problem 2019-10-25 19:54:41 +03:00
andri lim 7fe4db62dc add compiletime test for signed int dumphex 2019-10-25 19:54:41 +03:00
andri lim 8cc9116d1e cosmetics changes 2019-10-23 21:55:47 +09:00
andri lim e58eb117c8 improve modular arithmetic test coverage + compile time test 2019-10-23 21:55:47 +09:00
andri lim 46011107b0 improve uint exp test coverage + compile time test 2019-10-23 21:55:47 +09:00
andri lim 59acce63b7 fixes intops.shr for Nim 0.19.6 2019-10-23 21:55:47 +09:00
andri lim fb9b5fde72 improve int muldiv coverage + compile time test 2019-10-23 21:55:47 +09:00
andri lim 0ee6dc5c6a convert runtime signed int mul to vm friendly 2019-10-23 21:55:47 +09:00
andri lim 5cf0fb08fb improve uint muldiv coverage + compile time test 2019-10-23 21:55:47 +09:00
andri lim 332688fc92 fixes high(uint64) issue with nim 19.6 2019-10-23 21:55:47 +09:00
andri lim c456190980 fixes operator precedence issue with nim 19.6 2019-10-23 21:55:47 +09:00
andri lim 5b9e73e488 improve uint comparison coverage + compile time test 2019-10-23 21:55:47 +09:00
andri lim 84466dae0a improve int comparison coverage + compile time test 2019-10-23 21:55:47 +09:00
andri lim 962932dd6a fixes isNegative only for signed integer 2019-10-23 21:55:47 +09:00
andri lim 07411e31a5 fixes test_uint_addsub typo 2019-10-23 21:55:47 +09:00
andri lim 7dc26bb714 signed integer 'fromHex' 2019-10-23 21:55:47 +09:00
andri lim f902d117fc improve int bitwise coverage + compile time test 2019-10-23 21:55:47 +09:00
andri lim 332f7b1f04 improve uint bitwise coverage + compile time test 2019-10-23 21:55:47 +09:00
andri lim 79dfae7d32 fixes typo 2019-10-23 21:55:47 +09:00
andri lim 057fb45f12 improve uint addsub coverage + compile time test 2019-10-23 21:55:47 +09:00
andri lim 4aff306a6f improve int addsub coverage + compile time test 2019-10-23 21:55:47 +09:00
andri lim 3189775012 fixes 32bit failure 2019-10-23 21:55:47 +09:00