Fixed a bug in jet for dis causing undeterministic behaivor.

This commit is contained in:
Gavin Whelan 2014-04-02 16:35:02 -07:00
parent a0c18f56b2
commit 3a231748ff

View File

@ -30,7 +30,7 @@
u2_chop(5, 0, len_w, 0, sal_r, a);
for ( i_w = 0; i_w < len_w; i_w++ ) {
*u2_at_ray(sal_r + i_w) &= u2_atom_word(b, i_w);
*u2_at_ray(sal_r + i_w) &= (i_w >= lnb_w) ? 0 : u2_atom_word(b, i_w);
}
return u2_rl_malt(wir_r, sal_r);
}