For the case at hand (plugin scale-points) it's highly unlikely to
encounter numbers > INT_MAX.
#include <ctype.h>
#include <stdlib.h>
+#include <stdint.h>
namespace PBD {
continue;
}
if (d_a) {
- const int64_t ia = strtoll (d_a, NULL, 0) * order_of_magnitude (d_a);
- const int64_t ib = strtoll (d_b, NULL, 0) * order_of_magnitude (d_b);
+ const int64_t ia = strtol (d_a, NULL, 0) * order_of_magnitude (d_a);
+ const int64_t ib = strtol (d_b, NULL, 0) * order_of_magnitude (d_b);
if (ia != ib) {
return ia < ib;
}