* spot/twaalgos/strength.cc: Fix unsigned/signed cmp.

This commit is contained in:
Alexandre Duret-Lutz 2017-07-01 07:57:25 +02:00
parent 09e47d648a
commit b9af535f3d

View file

@ -243,7 +243,7 @@ namespace spot
{ {
char* endptr; char* endptr;
long int scc = strtol(keep_opt - 1, &endptr, 10); long int scc = strtol(keep_opt - 1, &endptr, 10);
if (scc >= n) if ((long unsigned) scc >= n)
{ {
throw std::runtime_error throw std::runtime_error
(std::string("decompose_scc(): there is no SCC ") (std::string("decompose_scc(): there is no SCC ")