const char **new;
size_t size;
- if (user_error_max >= MIN(SIZE_MAX, INT_MAX)/2 - LBX_EUBASE)
+ if (user_error_max >= MIN((size_t)-1, INT_MAX)/2 - LBX_EUBASE)
return -1;
- if (2 * user_error_max >= SIZE_MAX / sizeof *user_errors)
+ if (2 * user_error_max >= (size_t)-1 / sizeof *user_errors)
return -1;
size = 2 * user_error_max * sizeof *user_errors;