make tests green again

This commit is contained in:
Andreas Rumpf 2017-11-02 19:07:00 +01:00
commit 0a38cd6543

View file

@ -262,7 +262,7 @@ proc socket*(domain: Domain = AF_INET, typ: SockType = SOCK_STREAM,
# TODO: Perhaps this should just raise EOS when an error occurs. # TODO: Perhaps this should just raise EOS when an error occurs.
when defined(Windows): when defined(Windows):
result = newTSocket(winlean.socket(ord(domain), ord(typ), ord(protocol)), buffered) result = newTSocket(winlean.socket(cint(domain), cint(typ), cint(protocol)), buffered)
else: else:
result = newTSocket(posix.socket(toInt(domain), toInt(typ), toInt(protocol)), buffered) result = newTSocket(posix.socket(toInt(domain), toInt(typ), toInt(protocol)), buffered)