widl: Avoid right-shift of negative values.

This commit is contained in:
Andrew Talbot 2011-11-22 22:25:37 +00:00 committed by Alexandre Julliard
parent 40179bedee
commit 7f27eb6a45
1 changed files with 2 additions and 2 deletions

View File

@ -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); 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, write_conf_or_var_desc(file, current_structure, offset, ft,
get_attrp(f->attrs, ATTR_SWITCHIS)); get_attrp(f->attrs, ATTR_SWITCHIS));
print_file(file, 2, "NdrFcShort(%hd),\t/* Offset= %hd (%u) */\n", print_file(file, 2, "NdrFcShort(0x%hx),\t/* Offset= %hd (%u) */\n",
reloff, reloff, absoff); (unsigned short)reloff, reloff, absoff);
*tfsoff += 8; *tfsoff += 8;
} }
offset += size; offset += size;