psemiletov / tea-qt

TEA text editor
https://tea.ourproject.org
GNU General Public License v3.0
88 stars 11 forks source link

comparison of unsigned expression >= 0 is always true #23

Closed ryandesign closed 6 years ago

ryandesign commented 6 years ago

There may be an error in the code... the clang compiler prints this warning:

libretta_calc.cpp:64:37: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
         for (size_t i = end_pos; i >= 0; i--)
                                  ~ ^  ~
1 warning generated.
psemiletov commented 6 years ago

Thank you! Fixed.