mescc: Use unsigned type for sizeof expression.

* module/mescc/compile.scm (ast->type): Use unsigned type for sizeof
expression.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2021-01-01 10:30:48 +01:00
parent da03a384c8
commit fac6a873f7
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -143,8 +143,8 @@
((type-name ,type) (ast->type type info)) ((type-name ,type) (ast->type type info))
((type-spec ,type) (ast->type type info)) ((type-spec ,type) (ast->type type info))
((sizeof-expr ,expr) (get-type "default" info)) ((sizeof-expr ,expr) (get-type "unsigned" info))
((sizeof-type ,type) (get-type "default" info)) ((sizeof-type ,type) (get-type "unsigned" info))
((string ,string) (make-c-array (get-type "char" info) (1+ (string-length string)))) ((string ,string) (make-c-array (get-type "char" info) (1+ (string-length string))))