On Fri, Sep 4, 2015 at 6:57 PM, Matt Turner wrote:
> On Thu, Sep 3, 2015 at 8:15 AM, Oded Gabbay wrote:
>> round(val*dscale) produces a double result, as val and dscale are double.
>> However, LLVMConstInt receives unsigned long long, so there is an
>> implicit conversion from double to unsigned
On Thu, Sep 3, 2015 at 8:15 AM, Oded Gabbay wrote:
> round(val*dscale) produces a double result, as val and dscale are double.
> However, LLVMConstInt receives unsigned long long, so there is an
> implicit conversion from double to unsigned long long.
> This is an undefined behavior. Therefore, we
On 03/09/15 16:26, Tom Stellard wrote:
On Thu, Sep 03, 2015 at 06:15:26PM +0300, Oded Gabbay wrote:
round(val*dscale) produces a double result, as val and dscale are double.
However, LLVMConstInt receives unsigned long long, so there is an
implicit conversion from double to unsigned long long.
T
On Thu, Sep 03, 2015 at 06:15:26PM +0300, Oded Gabbay wrote:
> round(val*dscale) produces a double result, as val and dscale are double.
> However, LLVMConstInt receives unsigned long long, so there is an
> implicit conversion from double to unsigned long long.
> This is an undefined behavior. Ther
round(val*dscale) produces a double result, as val and dscale are double.
However, LLVMConstInt receives unsigned long long, so there is an
implicit conversion from double to unsigned long long.
This is an undefined behavior. Therefore, we need to first explicitly
convert the round result to long l