1
0
mirror of https://github.com/cc65/cc65.git synced 2025-08-08 06:25:17 +00:00

Fixed a typo in g_typeadjust(). Will fix #2611.

This commit is contained in:
Kugel Fuhr
2025-04-07 09:20:51 +02:00
parent 2b30b90cfe
commit f1ed5b7057

View File

@@ -1489,7 +1489,7 @@ unsigned g_typeadjust (unsigned lhs, unsigned rhs)
** both operands are converted to unsigned long int. ** both operands are converted to unsigned long int.
*/ */
if ((ltype == CF_LONG && rtype == CF_INT && (rhs & CF_UNSIGNED)) || if ((ltype == CF_LONG && rtype == CF_INT && (rhs & CF_UNSIGNED)) ||
(rtype == CF_LONG && ltype == CF_INT && (rhs & CF_UNSIGNED))) { (rtype == CF_LONG && ltype == CF_INT && (lhs & CF_UNSIGNED))) {
/* long can represent all unsigneds, so we are in the first sub-case. */ /* long can represent all unsigneds, so we are in the first sub-case. */
return const_flag | CF_LONG; return const_flag | CF_LONG;
} }