Bounds check the components of a s[i:j] expr

This commit is contained in:
Nigel Tao committed 2018-05-24 11:44:16 +10:00
1 parent 5e856540bd
commit 30e48093fc
2 files changed
+15 -2

No files matched your search

+1 -2
View File
@@ -432,8 +432,7 @@ pri func decoder.decode_id_part1?(ib ptr base.image_buffer, dst base.io_writer,
}
// TODO: have a builtin btoi or "b as base.u32"?
// TODO: p's type should be base.u32[..1]
var p base.u32 = 0
var p base.u32[..1] = 0
if this.have_lct {
p = 1
}