|
From: | Kevin Kelley |
Subject: | Re: [Dotgnu-libjit] [Patch] Type conversion bug |
Date: | Wed, 13 Oct 2010 17:29:28 -0500 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 |
On 10/13/2010 4:53 PM, Michele Tartara wrote:
2010/10/13 Klaus Treichel<address@hidden>:Hi Michele,[...]This is not a bug. In libjit we follow the C conversion standard. So the sign extension or zero extension depends on the source type for a widening conversion. A signed 32bit is always sign extended to 64bit even if the target type is unsigned.Mmmh... I'm sorry, but I do not agree. I have an int32 with value 0xffffffff that has to be converted to a uint64.
[...] You have an int, so its "value" is -1, no? So... 0x10000000000000000 + (-1) = 0xFFFFffffFFFFffff. How I'd read it, anyway. cheers, Kevin
[Prev in Thread] | Current Thread | [Next in Thread] |