[erlang-questions] bug: R12B-0 can't compile YXA 1.0
Bjorn Gustavsson
bjorn@REDACTED
Thu Dec 6 08:06:04 CET 2007
Fredrik Thulin <ft@REDACTED> writes:
> Hi
>
> Thanks for R12B-0. I found this problem though :
>
Thanks!
Here is a minimal patch that solves the problem. (I will probably
fix the problem in a different way in R12B-1.)
/Bjorn
*** lib/compiler/src/v3_codegen.erl@@/OTP_R12B Mon Nov 26 19:57:57 2007
--- lib/compiler/src/v3_codegen.erl Thu Dec 6 07:32:25 2007
***************
*** 1457,1462 ****
--- 1457,1464 ----
Sizes = filter(fun({_,{integer,0}}) -> false;
(_) -> true end, Sizes0),
case Sizes of
+ [] ->
+ {bs_init2,[{integer,0}]};
[{1,_}|_] ->
{bs_init_bits,cg_binary_bytes_to_bits(Sizes, [])};
[{8,_}|_] ->
--
Björn Gustavsson, Erlang/OTP, Ericsson AB
More information about the erlang-questions
mailing list