[WIDL] Sync with Wine Staging 1.9.16. CORE-11866

svn path=/trunk/; revision=72409
This commit is contained in:
Amine Khaldi 2016-08-21 17:22:27 +00:00
parent 7cf942787a
commit 1cd18d016a
2 changed files with 5 additions and 5 deletions

View file

@ -16,7 +16,7 @@ wine-patches@winehq.com and ros-dev@reactos.org
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.

View file

@ -222,8 +222,8 @@ expr_t *make_exprt(enum expr_type type, var_t *var, expr_t *expr)
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;
@ -231,8 +231,8 @@ expr_t *make_exprt(enum expr_type type, var_t *var, expr_t *expr)
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;
}
}