Andrew Talbot : widl: Avoid right-shift of negative values.
Alexandre Julliard
julliard at winehq.org
Wed Nov 23 13:40:04 CST 2011
Module: wine
Branch: master
Commit: 7f27eb6a451510ceefa91b71f9d6cd8e152df9b1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7f27eb6a451510ceefa91b71f9d6cd8e152df9b1
Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date: Tue Nov 22 22:25:37 2011 +0000
widl: Avoid right-shift of negative values.
---
tools/widl/typegen.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index cadbef2..c1b5302 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -2379,8 +2379,8 @@ static void write_descriptors(FILE *file, type_t *type, unsigned int *tfsoff)
print_file(file, 2, "0x%x,\t/* FIXME: always FC_LONG */\n", RPC_FC_LONG);
write_conf_or_var_desc(file, current_structure, offset, ft,
get_attrp(f->attrs, ATTR_SWITCHIS));
- print_file(file, 2, "NdrFcShort(%hd),\t/* Offset= %hd (%u) */\n",
- reloff, reloff, absoff);
+ print_file(file, 2, "NdrFcShort(0x%hx),\t/* Offset= %hd (%u) */\n",
+ (unsigned short)reloff, reloff, absoff);
*tfsoff += 8;
}
offset += size;
More information about the wine-cvs
mailing list