mescc: Fix size ERROR message.

* module/language/c99/compiler.mes (expr->accu): Fix size ERROR message.
This commit is contained in:
Jan Nieuwenhuizen 2018-05-20 08:51:15 +02:00
parent 1dedd0ebca
commit bbfe7de3da
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -1293,8 +1293,8 @@
(rank (->rank type)) (rank (->rank type))
(type-b (ast->type b info)) (type-b (ast->type b info))
(rank-b (->rank type-b)) (rank-b (->rank type-b))
(size (->size type)) (size (if (zero? rank) (->size type) 4))
(size-b (->size type-b)) (size-b (if (zero? rank-b) (->size type-b) 4))
(info (expr->accu b info)) (info (expr->accu b info))
(info (if (equal? op "=") info (info (if (equal? op "=") info
(let* ((struct? (structured-type? type)) (let* ((struct? (structured-type? type))
@ -1326,7 +1326,7 @@
(when (and (equal? op "=") (when (and (equal? op "=")
(not (= size size-b)) (not (= size size-b))
(not (and (or (= size 1) (= size 2)) (not (and (or (= size 1) (= size 2))
(= size-b 4))) (or (= size-b 2) (= size-b 4))))
(not (and (= size 2) (not (and (= size 2)
(= size-b 4))) (= size-b 4)))
(not (and (= size 4) (not (and (= size 4)