mirror of
https://github.com/cc65/cc65.git
synced 2025-01-17 20:30:36 +00:00
Output an apropriate error message when a floating point type is encountered
(instead of an internal compiler error). git-svn-id: svn://svn.cc65.org/cc65/trunk@4028 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
bfc8bd6d74
commit
e646d35db0
@ -70,7 +70,12 @@
|
|||||||
static void typeerror (unsigned type)
|
static void typeerror (unsigned type)
|
||||||
/* Print an error message about an invalid operand type */
|
/* Print an error message about an invalid operand type */
|
||||||
{
|
{
|
||||||
Internal ("Invalid type in CF flags: %04X, type = %u", type, type & CF_TYPE);
|
/* Special handling for floats here: */
|
||||||
|
if ((type & CF_TYPE) == CF_FLOAT) {
|
||||||
|
Fatal ("Floating point type is currently unsupported");
|
||||||
|
} else {
|
||||||
|
Internal ("Invalid type in CF flags: %04X, type = %u", type, type & CF_TYPE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user