mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +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':
|
case 'x':
|
||||||
ch = advance(s)
|
ch = advance(s)
|
||||||
base, prefix = 16, 'x'
|
base, prefix = 16, 'x'
|
||||||
case:
|
case 'o':
|
||||||
|
ch = advance(s)
|
||||||
base, prefix = 8, 'o'
|
base, prefix = 8, 'o'
|
||||||
|
case:
|
||||||
digsep = 1 // Leading zero
|
digsep = 1 // Leading zero
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user