Type check "var x T0 = y as T1".

This commit is contained in:
Nigel Tao committed 2017-06-22 15:31:55 +10:00
1 parent 497a8776c2
commit f857d777ee
3 files changed
+14 -5

No files matched your search

+2 -2
View File
@@ -105,7 +105,7 @@ pri func decoder.decode_extension?(src reader1)() {
// Skip the data blocks.
while true {
var block_size u8 = in.src.read_u8?() as u32
var block_size u8 = in.src.read_u8?()
if block_size == 0 {
break
}
@@ -145,7 +145,7 @@ pri func decoder.decode_id?(src reader1)() {
// TODO: pass the data blocks' payload to this.lzw.
while true {
var block_size u8 = in.src.read_u8?() as u32
var block_size u8 = in.src.read_u8?()
if block_size == 0 {
break
}