Fixed error message of CheckedPSizeOf().

This commit is contained in:
acqn
2020-08-03 08:09:50 +08:00
committed by Oliver Schmidt
parent e3d913b81a
commit bae431eab0

View File

@@ -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;