Implement f16 functionality
This commit is contained in:
1 parent
a00d7cc705
commit
54e6c50769
16 files changed
+499
-76
No files matched your search
@@ -431,9 +431,9 @@ scan_number :: proc(t: ^Tokenizer, seen_decimal_point: bool) -> (Token_Kind, str
|
||||
}
|
||||
|
||||
switch digit_count {
|
||||
case 8, 16: break;
|
||||
case 4, 8, 16: break;
|
||||
case:
|
||||
error(t, t.offset, "invalid hexadecimal floating-point number, expected 8 or 16 digits, got %d", digit_count);
|
||||
error(t, t.offset, "invalid hexadecimal floating-point number, expected 4, 8, or 16 digits, got %d", digit_count);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user