start = ALIGN_TO(old_size, align);
new_size = start + sz;
- if (new_size < start ||
- new_size > (size_t) UINT32_MAX)
+ if (new_size < start || new_size > UINT32_MAX)
goto poison;
if (old_size == new_size)
added = padding + sz;
/* Check for 32bit overflows */
- if (end_body > (size_t) UINT32_MAX ||
- end_body < start_body) {
+ if (end_body < start_body || end_body > UINT32_MAX) {
m->poisoned = true;
return NULL;
}
int table_set_empty_string(Table *t, const char *empty);
int table_set_display_all(Table *t);
int table_set_display_internal(Table *t, size_t first_column, ...);
-#define table_set_display(...) table_set_display_internal(__VA_ARGS__, (size_t) SIZE_MAX)
+#define table_set_display(...) table_set_display_internal(__VA_ARGS__, SIZE_MAX)
int table_set_sort_internal(Table *t, size_t first_column, ...);
-#define table_set_sort(...) table_set_sort_internal(__VA_ARGS__, (size_t) SIZE_MAX)
+#define table_set_sort(...) table_set_sort_internal(__VA_ARGS__, SIZE_MAX)
int table_set_reverse(Table *t, size_t column, bool b);
int table_hide_column_from_display(Table *t, size_t column);