Jump to content

short_of_str_off returns unsigned short


FredSRichardson

Recommended Posts

This is more of a note to myself. But I was a bit surprised to find out that WeiDU's short_of_str_off function always returns an unsigned short, whereas NearInfinity alway displays signed shorts. Um, so anyway, it's a disaster to check "i < 0" when "i" comes from "short_of_str_off". Instead you have to do something else like "i = 0xFFFF" (-1) or "i land 0x8000" (negative) since the value is stored in a 4 byte int. Such a pain...

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...