status-im / nim-faststreams

Nearly zero-overhead input/output streams for Nim
Apache License 2.0
125 stars 11 forks source link

Fix nim devel 32 bits #37

Closed Menduist closed 1 year ago

Menduist commented 1 year ago

Nim devel changed int matching rules Causes:

/home/runner/.nimble/pkgs/faststreams-0.3.0/faststreams/textio.nim(91, 14) Error: type mismatch
Expression: writeText(s, MatchingUInt(0) - MatchingUInt(x))
  [1] s: OutputStream
  [2] MatchingUInt(0) - MatchingUInt(x): uint32

Expected one of (first mismatch at position [#]):
[2] proc writeText(s: OutputStream; x: CompiledIntTypes)
[2] proc writeText(s: OutputStream; x: CompiledUIntTypes)