From bae431eab0f3cdb3d47aa47164f0d870a0ecc2ba Mon Sep 17 00:00:00 2001 From: acqn Date: Mon, 3 Aug 2020 08:09:50 +0800 Subject: [PATCH] Fixed error message of CheckedPSizeOf(). --- src/cc65/datatype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc65/datatype.c b/src/cc65/datatype.c index bcaf3ab64..18bf41bca 100644 --- a/src/cc65/datatype.c +++ b/src/cc65/datatype.c @@ -919,7 +919,7 @@ unsigned CheckedPSizeOf (const Type* T) { unsigned Size = PSizeOf (T); if (Size == 0) { - Error ("Size of type '%s' is unknown", GetFullTypeName (T)); + Error ("Size of type '%s' is unknown", GetFullTypeName (T + 1)); Size = SIZEOF_CHAR; /* Don't return zero */ } return Size;