Menu

#231 possible bug in progs/demos/multi-touch/multi-touch.c

None
closed-fixed
nobody
None
5
2017-06-05
2016-03-24
No

Notice a possible bug in onDisplay() in freeglut-3.0.0/progs/demos/multi-touch/multi-touch.c

The nested loops read
for (d = 0; d < NUM_DEVICES; d++) {
int c;
for (c = 0; d < NUM_DEVICES; d++) {
...
}
}

The inner loop should iterate on 'c', not 'd'?

Discussion

  • rcmaniac25

    rcmaniac25 - 2017-05-14

    Yes, that does appear to be a copy paste bug. Will submit a fix for review soon.

     
  • Diederick C. Niehorster

    • status: open --> closed-fixed
    • Group: -->
     
  • Diederick C. Niehorster

    Thanks for reporting. Should have been for (c = 0; c < NUM_CURSORS; c++). fix comitted in github master, will appear on sf.net svn repo shortly

     

Log in to post a comment.