in reply to Re^5: perl inline::c sorting problem
in thread perl inline::c sorting problem
"the magic of XS"
No, just the magic of the C standard. Very much like how double n = 1; doesn't generate a warning. Some compilers might give you a warning if assigning a long long value into a non-long double, at least if the long long value is "big" enough, but that is beyond my level of knowledge of such things at this point. The typical case of a 4-byte IV and an 8-byte NV means there is never even a single bit lost by such an assignment and I clearly recall that the C standard specifies that such is allowed without complaint.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: perl inline::c sorting problem (implicit coercion)
by BrowserUk (Patriarch) on May 02, 2009 at 05:32 UTC | |
by syphilis (Archbishop) on May 03, 2009 at 10:08 UTC | |
by BrowserUk (Patriarch) on May 03, 2009 at 10:41 UTC |