mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 00:55:11 +01:00
cgen: generate 123u (instead of 123) more often
This commit is contained in:
1 parent
805e37915f
commit
50d765839c
3 files changed
+46
-47
No files matched your search
@@ -45,8 +45,7 @@ func (g *gen) writeExpr(b *buffer, n *a.Expr, sideEffectsOnly bool, depth uint32
|
||||
// https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=59018
|
||||
// but we should generate 123u instead of 123 more broadly.
|
||||
const minIncl = 0xFFFFADFD
|
||||
const maxIncl = 0xFFFFF384
|
||||
if i := cv.Int64(); (minIncl <= i) && (i <= maxIncl) {
|
||||
if i := cv.Int64(); minIncl <= i {
|
||||
b.writeb('u')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user