fixes the integer conversion regressions

This commit is contained in:
Araq 2015-01-13 20:55:03 +01:00
commit 20774ad43c
7 changed files with 29 additions and 26 deletions

View file

@ -284,7 +284,7 @@ when not defined(js):
proc newFileStream*(filename: string, mode: FileMode): FileStream =
## creates a new stream from the file named `filename` with the mode `mode`.
## If the file cannot be opened, nil is returned. See the `system
## <system.html>`_ module for a list of available TFileMode enums.
## <system.html>`_ module for a list of available FileMode enums.
var f: File
if open(f, filename, mode): result = newFileStream(f)