mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 00:55:11 +01:00
Update hello-wuffs-c/README.md for previous commit
This commit is contained in:
1 parent
1f0bf016e7
commit
7d684f94ae
1 file changed
+6
-6
@@ -97,16 +97,16 @@ pub func parser.parse?(src: base.io_reader) {
|
|||||||
// Rebase from ASCII (0x30 ..= 0x39) to the value (0 ..= 9).
|
// Rebase from ASCII (0x30 ..= 0x39) to the value (0 ..= 9).
|
||||||
c -= 0x30
|
c -= 0x30
|
||||||
|
|
||||||
if this.val < 429496729 {
|
if this.val < 429_496729 {
|
||||||
this.val = (10 * this.val) + (c as base.u32)
|
this.val = (10 * this.val) + (c as base.u32)
|
||||||
continue
|
continue
|
||||||
} else if (this.val > 429496729) or (c > 5) {
|
} else if (this.val > 429_496729) or (c > 5) {
|
||||||
return "#too large"
|
return "#too large"
|
||||||
}
|
}
|
||||||
// Uncomment this assertion to see what facts are known here.
|
// Uncomment this assertion to see what facts are known here.
|
||||||
// assert false
|
// assert false
|
||||||
this.val = (10 * this.val) + (c as base.u32)
|
this.val = (10 * this.val) + (c as base.u32)
|
||||||
}
|
} endwhile
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -124,11 +124,11 @@ index cb207eec..c38dcf88 100644
|
|||||||
--- a/hello-wuffs-c/parse.wuffs
|
--- a/hello-wuffs-c/parse.wuffs
|
||||||
+++ b/hello-wuffs-c/parse.wuffs
|
+++ b/hello-wuffs-c/parse.wuffs
|
||||||
@@ -35,7 +35,7 @@ pub func parser.parse?(src: base.io_reader) {
|
@@ -35,7 +35,7 @@ pub func parser.parse?(src: base.io_reader) {
|
||||||
if this.val < 429496729 {
|
if this.val < 429_496729 {
|
||||||
this.val = (10 * this.val) + (c as base.u32)
|
this.val = (10 * this.val) + (c as base.u32)
|
||||||
continue
|
continue
|
||||||
- } else if (this.val > 429496729) or (c > 5) {
|
- } else if (this.val > 429_496729) or (c > 5) {
|
||||||
+ } else if (this.val > 429496729) {
|
+ } else if (this.val > 429_496729) {
|
||||||
return "#too large"
|
return "#too large"
|
||||||
}
|
}
|
||||||
// Uncomment this assertion to see what facts are known here.
|
// Uncomment this assertion to see what facts are known here.
|
||||||
|
|||||||
Reference in new issue
Block a user