Displaying 3 results from an estimated 3 matches for "368fd9b8".
2018 May 25
0
double to unsigned char cast
On Tue, May 22, 2018 at 6:17 PM, Jay K via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> This seems disappointing.
>
> Casting any value to an integral type should yield a value within the range
> of that integral type.
As Tim pointed out, that's not what the standard says though.
Trunk Clang (I'm not sure what version your Xcode Clang is based on)
has a flag to
2018 May 22
2
double to unsigned char cast
This seems disappointing.
Casting any value to an integral type should yield a value within the range of that integral type.
The value can be anything, but it should be within range.
i.e. it should be as if I anded it with (type)~(type)0.
i.e. int i = (signed char)x;
assert(i >= -128 && i <= 127);
int i = (unsigned char)x;
assert(i >= 0 && i <= 255);
seem very
2018 May 25
1
double to unsigned char cast
..._____________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180525/368fd9b8/attachment.html>