srlabUsask / crhmcode

GNU General Public License v3.0
7 stars 4 forks source link

Fix for NDEFN vars in Display_var project section #415

Closed lawfordp2017 closed 2 years ago

lawfordp2017 commented 2 years ago

string::find returns npos which is type size_t and = -1 but size_t is unsigned so comparisons to negative values will always fail.

jhs507 commented 2 years ago

Good catch.