mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-21 22:23:14 +01:00
Cleanup: Avoid signed/unsigned comparisons.
The ones ones left are for DMD-defined constants.
This commit is contained in:
@@ -182,9 +182,8 @@ void VarDeclaration::codegen(Ir* p)
|
||||
|
||||
// Set the alignment (it is important not to use type->alignsize because
|
||||
// VarDeclarations can have an align() attribute independent of the type
|
||||
// as well). FIXME: ~0 is really STRUCTALIGN_DEFAULT, change as soon as
|
||||
// 1.075 has been merged.
|
||||
if (alignment != ~0)
|
||||
// as well).
|
||||
if (alignment != STRUCTALIGN_DEFAULT)
|
||||
gvar->setAlignment(alignment);
|
||||
|
||||
if (Logger::enabled())
|
||||
|
||||
Reference in New Issue
Block a user