status-im/nim-stew

not work with `-d:swapBytesBuiltin --cc:vcc`

Closed this issue · 0 comments

C:\Users\Jose\Desktop>nim c -d:swapBytesBuiltin --cc:vcc en
Hint: used config file 'D:\Nim\config\nim.cfg' [Conf]
Hint: used config file 'D:\Nim\config\config.nims' [Conf]
Hint: system [Processing]
Hint: widestrs [Processing]
Hint: io [Processing]
Hint: en [Processing]
Hint: endians2 [Processing]
C:\Users\Jose\Desktop\en.nim(10, 15) template/generic instantiation of `swapBytes` from here
D:\Nimble\pkgs\stew-0.1.0\stew\endians2.nim(86, 23) Error: type mismatch: got <uint16>
but expected one of:
func swapBytesBuiltin(x: uint8): uint8
  first type mismatch at position: 1
  required type for x: uint8
  but expression 'x' is of type: uint16

expression: swapBytesBuiltin(x)