Add use_save_code to std/gif/decode_lzw.puffs.

This commit is contained in:
Nigel Tao committed 2017-06-09 14:51:39 +10:00
1 parent 0b034d7f6e
commit ddbbdecce6
5 files changed
+65 -6

No files matched your search

+3 -1
View File
@@ -765,7 +765,9 @@ func (q *checker) bcheckTypeExpr(n *a.TypeExpr) (*big.Int, *big.Int, error) {
}
b := [2]*big.Int{}
if key := n.Name().Key(); key < t.Key(len(numTypeBounds)) {
if key := n.Name().Key(); key == t.KeyBool {
b = [2]*big.Int{zero, one}
} else if key < t.Key(len(numTypeBounds)) {
b = numTypeBounds[key]
}
if b[0] == nil || b[1] == nil {