commit 140241e1d4dde2bde6380a3be653db8da18edd9a
parent 687d53be35d94f9684bf1d373b42ea36dcdafb2a
Author: ssnf <ssnf@ssnf.xyz>
Date: Wed, 29 Jan 2025 00:18:26 +0000
remove assert.h
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sim.c b/sim.c
@@ -1,4 +1,3 @@
-#include <assert.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
@@ -292,7 +291,8 @@ change(int arg)
static uint
charsiz(char c, ulong wx)
{
- assert(c != '\n');
+ if (c == '\n')
+ die("charsiz(): newline.");
return (c == '\t') ? w.t - (wx % w.t) : 1;
}