mirror of
https://github.com/xodio/xod.git
synced 2026-03-25 01:56:54 +01:00
tweak(stdlib): make sure all arguments of min and max have the same type
this allows building for platforms that use STL versions of `min` and `max` instead of defining their own
This commit is contained in:
@@ -13,7 +13,7 @@ void evaluate(Context ctx) {
|
||||
auto state = getState(ctx);
|
||||
|
||||
auto num = (getValue<input_IN>(ctx) == 0) ? 0 : abs(getValue<input_IN>(ctx));
|
||||
int8_t lenFull = (getValue<input_W>(ctx) < 0) ? 0 : min(15, getValue<input_W>(ctx));
|
||||
int8_t lenFull = (getValue<input_W>(ctx) < 0) ? 0 : min((Number)15, getValue<input_W>(ctx));
|
||||
char strNum[16];
|
||||
dtostrf(num, 0, 0, strNum);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user