zielmicha / reactor.nim

Asynchronous networking engine for Nim
https://networkos.net/nim/reactor.nim/doc/
MIT License
108 stars 6 forks source link

Error: type mismatch: got <int64> but expected 'uint8' #18

Open cabhishek opened 6 years ago

cabhishek commented 6 years ago

Trying to run example_http.nim but getting

.nimble/pkgs/reactor-0.4.4/reactor/ipaddress.nim(292, 17) Error: type mismatch: got <int64> but expected 'uint8'

Using

Nim Compiler Version 0.18.0 [MacOSX: amd64]
Copyright (c) 2006-2018 by Andreas Rumpf

git hash: 855956bf617f68ac0be3717329e9e1181e5dc0c6
active boot switches: -d:release
zielmicha commented 6 years ago

This was already fixed in HEAD (the problem was caused by changed integer promotion rules in Nim 0.18). I've just made a new release contaning the fix.