mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 20:55:48 +01:00
Fix MSVC builds, use C89 strtol() instead of C99 strtoll()
For the case at hand (plugin scale-points) it's highly unlikely to encounter numbers > INT_MAX.
This commit is contained in:
parent
b8460441fb
commit
def4be7285
1 changed files with 3 additions and 2 deletions
|
|
@ -21,6 +21,7 @@
|
|||
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
|
||||
namespace PBD {
|
||||
|
||||
|
|
@ -83,8 +84,8 @@ numerically_less (const char* a, const char* b)
|
|||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue