Made maximum rows more limited to avoid bugs

This commit is contained in:
AnnaSnoeijs 2025-08-14 20:21:06 +02:00
parent 214112ad17
commit 72a56a15d7
2 changed files with 7 additions and 7 deletions

10
types.h
View file

@ -5,13 +5,13 @@
#include <limits.h>
#include "config.h"
// Use fastest available ints unless it's 64 bits because that uses more memory
// Use fastest available ints unless it's 64 bits because that is doing silly
#if INT_FAST16_MAX == INT_FAST64_MAX
typedef int rowsint_t;
typedef unsigned columnsint_t;
typedef int rowsint_t;
typedef unsigned columnsint_t;
#define QUITCOLUMN UINT_MAX
typedef unsigned winint_t;
typedef uintmax_t column_t;
typedef unsigned winint_t;
typedef unsigned column_t;
#else
typedef int_fast8_t rowsint_t;
typedef uint_fast8_t columnsint_t;