hadzim/BioFW — pull request #2 by dohnto (2014-12-02 23:27:43+00:00)
Title: Rounding: fixed comparison when number is integer

My system fails to compare these (unsigned ~ 32b, size_t ~ 64b). Anyway I believe, that the comparison should be performed directly and let the compiler do implicit conversion.

assume: decPos = -1
unsigned(decPos) == std::string::npos <=> 4294967296 == 18446744073709551616 <=> 0
versus
decPos == std::string::npos <=> (int)-1 == 18446744073709551616 <=> 18446744073709551616 == 18446744073709551616 <=> 0

This is just my assumption, I might be wrong.