mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Fix hello-wuffs-c for recent language changes
This commit is contained in:
1 parent
d9d022b2df
commit
1f0bf016e7
1 file changed
+3
-3
@@ -32,16 +32,16 @@ pub func parser.parse?(src: base.io_reader) {
|
||||
// Rebase from ASCII (0x30 ..= 0x39) to the value (0 ..= 9).
|
||||
c -= 0x30
|
||||
|
||||
if this.val < 429496729 {
|
||||
if this.val < 429_496729 {
|
||||
this.val = (10 * this.val) + (c as base.u32)
|
||||
continue
|
||||
} else if (this.val > 429496729) or (c > 5) {
|
||||
} else if (this.val > 429_496729) or (c > 5) {
|
||||
return "#too large"
|
||||
}
|
||||
// Uncomment this assertion to see what facts are known here.
|
||||
// assert false
|
||||
this.val = (10 * this.val) + (c as base.u32)
|
||||
}
|
||||
} endwhile
|
||||
}
|
||||
|
||||
pub func parser.value() base.u32 {
|
||||
|
||||
Reference in new issue
Block a user