mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 01:21:38 -07:00
Merge pull request #5879 from mtarik34b/fix-5239
`text/scanner`: Add missing switch case for octal prefix (fixes #5239)
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