Skip to content

Commit

Permalink
Fix freadall usage
Browse files Browse the repository at this point in the history
Signed-off-by: Marek Maškarinec <[email protected]>
  • Loading branch information
marekmaskarinec committed Mar 21, 2024
1 parent 2435cae commit 664f046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion umka/misc.um
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
// Use std.freadall instaed.
fn readall*(path: str): str {
//~~
return std.freadall(std.fopen(path, "r").item0).item0
return std.freadall(std.fopen(path, "rb").item0).item0
}

//~~fn stepify
Expand Down

0 comments on commit 664f046

Please sign in to comment.