mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 08:47:28 +01:00
Prepare to decode BMP embedding a JPEG or PNG
This commit is contained in:
1 parent
1239280ad8
commit
dcb81a85bb
11 files changed
+170
-34
No files matched your search
@@ -30,6 +30,9 @@ func (g *gen) writeExpr(b *buffer, n *a.Expr, depth uint32) error {
|
||||
if cv := n.ConstValue(); cv != nil {
|
||||
if typ := n.MType(); typ.IsNumTypeOrIdeal() {
|
||||
b.writes(cv.String())
|
||||
if cv.Cmp(maxInt64) > 0 {
|
||||
b.writeb('u')
|
||||
}
|
||||
} else if typ.IsNullptr() {
|
||||
b.writes("NULL")
|
||||
} else if typ.IsStatus() {
|
||||
|
||||
Reference in new issue
Block a user