summaryrefslogtreecommitdiffhomepage
path: root/src/democustom.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2024-08-03 23:40:31 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2024-08-23 20:37:37 +0100
commit83da606072ce272eb053d4e1497d77e647cfecae (patch)
tree71d0110881ff8685184c5f4ab720cc8d49c24678 /src/democustom.c
parentacbd30e0427b16f885f96aed59881ec04eff25bc (diff)
Revise syntax macros and add a ton of branch hints
My new programming style is branch hints. All non-confusing branches must be hinted when I can be bothered. It's faster, sometimes, maybe. Also, start trying to use more signed sizes in at least some of the places where it makes sense. Unsigned sizes are surprisingly error-prone!
Diffstat (limited to 'src/democustom.c')
-rw-r--r--src/democustom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/democustom.c b/src/democustom.c
index 4c1baf2..30fc4ee 100644
--- a/src/democustom.c
+++ b/src/democustom.c
@@ -24,6 +24,7 @@
#include "feature.h"
#include "gamedata.h"
#include "intdefs.h"
+#include "langext.h"
#include "mem.h"
#include "ppmagic.h"
#include "vcall.h"
@@ -46,7 +47,7 @@ static union {
bitbuf_cell _align; // just in case...
} bb_buf;
static struct bitbuf bb = {
- {bb_buf.x}, sizeof(bb_buf), sizeof(bb_buf) * 8, 0, false, false, "SST"
+ {bb_buf.x}, ssizeof(bb_buf), ssizeof(bb_buf) * 8, 0, false, false, "SST"
};
static const void *createhdr(struct bitbuf *msg, int len, bool last) {