update Wed Feb 24 06:37:03 PST 2010
[pkgsrc.git] / wip / erlang / patches / patch-ah
1 $NetBSD: patch-ah,v 1.3 2009/12/15 12:07:57 asau Exp $
2
3 --- lib/compiler/src/v3_codegen.erl.orig        2009-11-20 15:30:50.000000000 +0200
4 +++ lib/compiler/src/v3_codegen.erl     2010-02-24 14:38:55.000000000 +0200
5 @@ -1518,6 +1518,8 @@
6      Sizes = filter(fun({_,{integer,0}}) -> false;
7                       (_) -> true end, Sizes0),
8      case Sizes of
9 +       [] ->
10 +           {bs_init2,[{integer,0}]};
11         [{1,_}|_] ->
12             {bs_init_bits,cg_binary_bytes_to_bits(Sizes, [])};
13         [{8,_}|_] ->