disable dot borrow temporary
This commit is contained in:
parent
e5c352fde2
commit
7ce536423a
|
@ -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]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue