Skip to content

Commit

Permalink
Fix failure to set one bit in sets larger than machine word.
Browse files Browse the repository at this point in the history
I introduced the regression not in the original rewrite circa 2010
but in a minor cleanup here in 2012:
https://modula3.elegosoft.com/cgi-bin/cvsweb.cgi/cm3/m3-libs/m3core/src/Csupport/Common/hand.c.diff?r1=1.138;r2=1.139;f=u
  • Loading branch information
jaykrell committed Jun 10, 2015
1 parent e964380 commit 2f2715a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion m3-libs/m3core/src/Csupport/Common/hand.c
Expand Up @@ -236,7 +236,7 @@ void
__stdcall
set_range(WORD_T b, WORD_T a, WORD_T* s)
{
if (a >= b) {
if (a > b) {
/* no bits to set */
} else {
WORD_T const a_word = a / SET_GRAIN;
Expand Down

0 comments on commit 2f2715a

Please sign in to comment.