Merge pull request #2626 from kugelfuhr/kugelfuhr/fix-2611

Fix a typo in g_typeadjust()
This commit is contained in:
Bob Andrews
2025-04-07 19:11:21 +02:00
committed by GitHub

View File

@@ -1489,7 +1489,7 @@ unsigned g_typeadjust (unsigned lhs, unsigned rhs)
** both operands are converted to unsigned long int.
*/
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. */
return const_flag | CF_LONG;
}