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): StInt*[bits: static[int]] = object
type ## Stack-based integer
StInt*[bits: static[int]] = object ## Signed
## Stack-based integer limbs*: array[bits.wordsRequired, Word]
## Signed
limbs*: array[bits.wordsRequired, Word] # {.borrow: `.`.} only works with nim-devel
else: # StInt*[bits: static[int]] {.borrow: `.`.} = distinct StUint[bits]
type ## Stack-based integer
StInt*[bits: static[int]] {.borrow: `.`.} = distinct StUint[bits] ## Signed
## Stack-based integer
## 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]