svn path=/trunk/; revision=72409
The following build tools are shared with Wine.
reactos/sdk/tools/unicode # Synced to WineStaging-1.9.16
The following build tools are shared with Wine.
reactos/sdk/tools/unicode # Synced to WineStaging-1.9.16
-reactos/sdk/tools/widl # Synced to WineStaging-1.9.11
+reactos/sdk/tools/widl # Synced to WineStaging-1.9.16
reactos/sdk/tools/wpp # Synced to WineStaging-1.9.11
The following libraries are shared with Wine.
reactos/sdk/tools/wpp # Synced to WineStaging-1.9.11
The following libraries are shared with Wine.
e->is_const = TRUE;
if (is_signed_integer_type(tref))
{
e->is_const = TRUE;
if (is_signed_integer_type(tref))
{
- cast_mask = (1 << (cast_type_bits - 1)) - 1;
- if (expr->cval & (1 << (cast_type_bits - 1)))
+ cast_mask = (1u << (cast_type_bits - 1)) - 1;
+ if (expr->cval & (1u << (cast_type_bits - 1)))
e->cval = -((-expr->cval) & cast_mask);
else
e->cval = expr->cval & cast_mask;
e->cval = -((-expr->cval) & cast_mask);
else
e->cval = expr->cval & cast_mask;
else
{
/* calculate ((1 << cast_type_bits) - 1) avoiding overflow */
else
{
/* calculate ((1 << cast_type_bits) - 1) avoiding overflow */
- cast_mask = ((1 << (cast_type_bits - 1)) - 1) |
- 1 << (cast_type_bits - 1);
+ cast_mask = ((1u << (cast_type_bits - 1)) - 1) |
+ 1u << (cast_type_bits - 1);
e->cval = expr->cval & cast_mask;
}
}
e->cval = expr->cval & cast_mask;
}
}