Skip to content

Commit

Permalink
workaround Issue 19300
Browse files Browse the repository at this point in the history
- due to relying on magic enums (cpp_ulonglong on OSX), plain
  comparison between targ_ullong and targ_llong is an error
  • Loading branch information
MartinNowak committed Oct 11, 2018
1 parent 15126e0 commit 8ca8f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dmd/backend/cod2.d
Expand Up @@ -2073,7 +2073,7 @@ void cdcond(ref CodeBuilder cdb,elem *e,regm_t *pretregs)
{
// only zero-extension from 32-bits is available for 'or'
}
else if (I64 && v2 != cast(targ_llong)cast(targ_long)v2)
else if (I64 && cast(targ_llong)v2 != cast(targ_llong)cast(targ_long)v2)
{
// only sign-extension from 32-bits is available for 'and'
}
Expand Down

0 comments on commit 8ca8f2e

Please sign in to comment.