mirror of
https://github.com/cc65/cc65.git
synced 2025-08-08 06:25:17 +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:
@@ -762,11 +762,11 @@ static int ParseFieldWidth (Declaration* Decl)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* TODO: This can be relaxed to be any integral type, but
|
/* 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)) {
|
if (SizeOf (Decl->Type) > SizeOf (type_uint)) {
|
||||||
/* Only int-sized or smaller types may be used for bit-fields for now */
|
/* 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");
|
Error ("cc65 currently supports only char-sized and int-sized bit-field types");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user