Prepare to decode BMP embedding a JPEG or PNG

This commit is contained in:
Nigel Tao committed 2020-05-27 13:37:54 +10:00
1 parent 1239280ad8
commit dcb81a85bb
11 files changed
+170 -34

No files matched your search

+3
View File
@@ -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() {