mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-01 20:28:15 +00:00
Fix error printing for basic directives
This commit is contained in:
@@ -39,6 +39,7 @@ Type_Info_Record :: struct #ordered {
|
||||
Type_Info :: union {
|
||||
size: int,
|
||||
align: int,
|
||||
|
||||
Named{name: string, base: ^Type_Info},
|
||||
Integer{signed: bool},
|
||||
Float{},
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user