Renesas TM V.3.20A Specifiche Pagina 235

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 762
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 234
Renesas Technology, Tools FAQs
Last Updated: September 20, 2001
Document Number: 01090501_e
Q.
I get the following warning when I assign the minimum value [-2147483648] as the long-type variable, even though this value is
stated in the manual. What is the problem?
"constant out of range due to unportable conversion"
A.
The value stated in the manual, [-2147483648] is correct for the value for the long-type variable. However, according ANSI-C
language specifications, the [2147483648] part is an unsigned long-type variable, and when this is signed, it goes out of the
unsigned long-type range and a special conversion takes place. The compiler is issuing the warning concerning this point.
Normally, when stating the minimum value as the long-type variable, you should use the macro "LONG_MIN", which is defined in
the ANSI-C standard header file [limits.h].
Top of Page | Back to Previous Page
Terms of Use Privacy Policy
(C)2004 Renesas Technology Corp., All Rights Reserved.
Vedere la pagina 234
1 2 ... 230 231 232 233 234 235 236 237 238 239 240 ... 761 762

Commenti su questo manuale

Nessun commento