From fac6a873f7d60bc680efaef8998cd116f0a7fff3 Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Fri, 1 Jan 2021 10:30:48 +0100 Subject: [PATCH] mescc: Use unsigned type for sizeof expression. * module/mescc/compile.scm (ast->type): Use unsigned type for sizeof expression. --- module/mescc/compile.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/mescc/compile.scm b/module/mescc/compile.scm index 15ab6b14..c9e266e6 100644 --- a/module/mescc/compile.scm +++ b/module/mescc/compile.scm @@ -143,8 +143,8 @@ ((type-name ,type) (ast->type type info)) ((type-spec ,type) (ast->type type info)) - ((sizeof-expr ,expr) (get-type "default" info)) - ((sizeof-type ,type) (get-type "default" info)) + ((sizeof-expr ,expr) (get-type "unsigned" info)) + ((sizeof-type ,type) (get-type "unsigned" info)) ((string ,string) (make-c-array (get-type "char" info) (1+ (string-length string))))