Explicitly return false

This commit is contained in:
def 2016-03-18 19:09:27 +01:00
commit dfba0bdcaf

View file

@ -296,7 +296,7 @@ proc open(f: var File, filename: string,
var res: Stat var res: Stat
if fstat(getFileHandle(f2), res) >= 0'i32 and S_ISDIR(res.st_mode): if fstat(getFileHandle(f2), res) >= 0'i32 and S_ISDIR(res.st_mode):
close(f2) close(f2)
return return false
result = true result = true
f = cast[File](p) f = cast[File](p)
if bufSize > 0 and bufSize <= high(cint).int: if bufSize > 0 and bufSize <= high(cint).int: