From 0f9d219bf2f9c24f24014499c3ef6ee50909e054 Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Sun, 16 Jan 2022 01:22:17 +0000 Subject: Add negative numbers to lexer and printer --- print.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'print.c') diff --git a/print.c b/print.c index ae29a01..15e5f2a 100644 --- a/print.c +++ b/print.c @@ -93,6 +93,8 @@ pparray(Array *a) *p-- = 0; /* remove trailing 0's */ } } + if(elemstrs[i][0] == '-' && (a->type == AtypeInt || a->type == AtypeFloat)) + elemstrs[i][0] = L'¯'; } int lastdim = a->rank ? a->shape[a->rank-1] : 1; -- cgit v1.2.3