mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-05 10:14:05 +00:00
Add missing case for octal prefix
This commit is contained in:
@@ -341,8 +341,10 @@ scan_number :: proc(s: ^Scanner, ch: rune, seen_dot: bool) -> (rune, rune) {
|
||||
case 'x':
|
||||
ch = advance(s)
|
||||
base, prefix = 16, 'x'
|
||||
case:
|
||||
case 'o':
|
||||
ch = advance(s)
|
||||
base, prefix = 8, 'o'
|
||||
case:
|
||||
digsep = 1 // Leading zero
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user