disable dot borrow temporary

This commit is contained in:
jangko 2023-06-13 08:14:52 +07:00
parent e5c352fde2
commit 7ce536423a
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
1 changed files with 9 additions and 12 deletions

View File

@ -37,19 +37,16 @@ type
limbs*: array[bits.wordsRequired, Word] limbs*: array[bits.wordsRequired, Word]
# Limbs-Endianess is little-endian # Limbs-Endianess is little-endian
when (NimMajor, NimMinor) < (1,9):
type
StInt*[bits: static[int]] = object StInt*[bits: static[int]] = object
## Stack-based integer ## Stack-based integer
## Signed ## Signed
limbs*: array[bits.wordsRequired, Word] limbs*: array[bits.wordsRequired, Word]
else:
type # {.borrow: `.`.} only works with nim-devel
StInt*[bits: static[int]] {.borrow: `.`.} = distinct StUint[bits] # StInt*[bits: static[int]] {.borrow: `.`.} = distinct StUint[bits]
## Stack-based integer ## Stack-based integer
## Signed ## Signed
type
Carry* = uint8 # distinct range[0'u8 .. 1] Carry* = uint8 # distinct range[0'u8 .. 1]
Borrow* = uint8 # distinct range[0'u8 .. 1] Borrow* = uint8 # distinct range[0'u8 .. 1]