Permalink
Browse files

Make iolist_size() work for iolists containing non-pure lists.

  • Loading branch information...
1 parent 2d0aec6 commit 753257a56b5857a7a72c344009e43558f4072bd0 @esstrifork esstrifork committed Jul 29, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/erjang/m/erlang/ErlBif.java
@@ -178,8 +178,8 @@ static ESmall iolist_size(EObject val) {
}
- ESeq seq;
- if ((seq = val.testSeq()) == null) {
+ ECons seq;
+ if ((seq = val.testCons()) == null) {
throw ERT.badarg(val);
}

0 comments on commit 753257a

Please sign in to comment.