1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-26 17:36:57 +00:00

Changed a cc65 error message to say that the sizes of bit-field types (not bit-fields) are limited.

This commit is contained in:
Greg King 2020-09-04 12:06:42 -04:00
parent d906204e84
commit 07ea5259ac

View File

@ -762,11 +762,11 @@ static int ParseFieldWidth (Declaration* Decl)
}
/* TODO: This can be relaxed to be any integral type, but
** ParseStructInit currently only supports up to int.
** ParseStructInit currently supports only up to int.
*/
if (SizeOf (Decl->Type) > SizeOf (type_uint)) {
/* Only int-sized or smaller types may be used for bit-fields for now */
Error ("cc65 currently only supports char-sized and int-sized bit-fields");
/* Only int-sized or smaller types may be used for bit-fields, for now */
Error ("cc65 currently supports only char-sized and int-sized bit-field types");
return -1;
}