Fix two more cases of of C99 strtoll()
authorJohn Emmas <john@creativepost.co.uk>
Tue, 31 Dec 2019 10:11:18 +0000 (10:11 +0000)
committerJohn Emmas <john@creativepost.co.uk>
Tue, 31 Dec 2019 10:11:18 +0000 (10:11 +0000)
libs/pbd/pbd/natsort.h

index b16ffd69686c131a80974c4c76e67ae1f94a25a2..ca4fbc170d820ff84e2b58c7ddc50a58c4784d38 100644 (file)
@@ -98,7 +98,7 @@ numerically_less (const char* a, const char* b)
        }
 
        if (d_a) {
-               return strtoll (d_a, NULL, 0) * order_of_magnitude (d_a) < strtoll (d_b, NULL, 0) * order_of_magnitude (d_b);
+               return strtol (d_a, NULL, 0) * order_of_magnitude (d_a) < strtol (d_b, NULL, 0) * order_of_magnitude (d_b);
        }
 
        /* if we reach here, either strings are same length and equal