[Bug modula2/118998] Rotate of a packetset causes different types to binary operator error
gaius at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 4 17:00:36 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118998
--- Comment #2 from Gaius Mulley <gaius at gcc dot gnu.org> ---
Created attachment 60652
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60652&action=edit
Proposed fix (work in progress)
Here is a proposed patch which fixes the rotate return type by converting both
arguments to the same type before calling ROTATE. Although, on relfection, it
is probably better to convert the return result prior to assigning it to the
temporary variable. I'll tidy this up and retest.
More information about the Gcc-bugs
mailing list