Mindwerks / plate-tectonics

A fork of platec http://sourceforge.net/projects/platec/
GNU Lesser General Public License v3.0
83 stars 24 forks source link

Remove unnecessary zero checks for unsigned types #14

Closed NewProggie closed 9 years ago

NewProggie commented 9 years ago

std::size_t is an unsigned integer type which can't hold a value below zero. Therefore checking for < 0 is unnecessary. Removing so called tautological expressions which are always true as well.

ftomassetti commented 9 years ago

Right, and we should also move away from size_t (unsigned int seems more reasonable).

Thank you a lot!

psi29a commented 9 years ago

Just set: Skip branches without appveyor.yml

ftomassetti commented 9 years ago

thanks!