ofxCv icon indicating copy to clipboard operation
ofxCv copied to clipboard

Tracker.h curLabel out of range

Open p0xky-xyz opened this issue 8 years ago • 1 comments

I think uint curLabel gets an out of range if my thread is running during a long time. To avoid this, i create this fix. what do yo think? unsigned int getNewLabel() { if (curLabel>=UINT_MAX) { curLabel = 0; } else { curLabel++; } return curLabel; }

thanks

p0xky-xyz avatar May 27 '16 10:05 p0xky-xyz

This is related to #202

kylemcdonald avatar Feb 08 '17 08:02 kylemcdonald