Author: akhaldi Date: Sun Aug 21 17:22:27 2016 New Revision: 72409
URL: http://svn.reactos.org/svn/reactos?rev=72409&view=rev Log: [WIDL] Sync with Wine Staging 1.9.16. CORE-11866
Modified: trunk/reactos/media/doc/README.WINE trunk/reactos/sdk/tools/widl/expr.c
Modified: trunk/reactos/media/doc/README.WINE URL: http://svn.reactos.org/svn/reactos/trunk/reactos/media/doc/README.WINE?rev=7... ============================================================================== --- trunk/reactos/media/doc/README.WINE [iso-8859-1] (original) +++ trunk/reactos/media/doc/README.WINE [iso-8859-1] Sun Aug 21 17:22:27 2016 @@ -16,7 +16,7 @@ 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.
Modified: trunk/reactos/sdk/tools/widl/expr.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/tools/widl/expr.c?rev=7... ============================================================================== --- trunk/reactos/sdk/tools/widl/expr.c [iso-8859-1] (original) +++ trunk/reactos/sdk/tools/widl/expr.c [iso-8859-1] Sun Aug 21 17:22:27 2016 @@ -222,8 +222,8 @@ 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 @@ 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; } }