Fix error printing for basic directives

This commit is contained in:
Ginger Bill
2017-04-17 19:58:43 +01:00
parent 6d9fadf351
commit 0c22081e5f
6 changed files with 37 additions and 21 deletions
+4
View File
@@ -210,6 +210,10 @@ read_entire_file :: proc(name: string) -> ([]byte, bool) {
return nil, false;
}
if length == 0 {
return nil, true;
}
data := make([]byte, length);
if data == nil {
return nil, false;