lib/erlectricity/decoder.rb in erlectricity-0.2.0 vs lib/erlectricity/decoder.rb in erlectricity-0.2.1
- old
+ new
@@ -183,10 +183,12 @@
end
def read_list
fail("Invalid Type, not an erlang list") unless read_1 == LIST
length = read_4
- (0...length).map{|i| read_any_raw}
+ list = (0...length).map{|i| read_any_raw}
+ read_1
+ list
end
def read_bin
fail("Invalid Type, not an erlang binary") unless read_1 == BIN
length = read_4
\ No newline at end of file