SW500010 Microchip Technology, SW500010 Datasheet - Page 386

HI-TECH C PRO FOR PIC10/12/16

SW500010

Manufacturer Part Number
SW500010
Description
HI-TECH C PRO FOR PIC10/12/16
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC10/12/16r
Datasheets

Specifications of SW500010

Supported Families
PIC10, PIC12, PIC16
Core Architecture
PIC
Software Edition
Professional
Kit Contents
Software And Docs
Mcu Supported Families
PIC10/12/16
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC10, PIC12, PIC14, PIC16, PIC16E
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
019P
778-1006
778-1006
will perform a sign extension of the char variable to the longer type. If you do not want this to take
place, use a cast, e.g.:
(356) implicit conversion of float to integer
A floating point value has been assigned or otherwise converted to an integral type. This could result
in truncation of the floating point value. A typecast will make this warning go away.
If you do intend to use an expression like this, then indicate that this is so by a cast:
(357) illegal conversion of integer to pointer
An integer has been assigned to or otherwise converted to a pointer type. This will usually mean you
have used the wrong variable, but if this is genuinely what you want to do, use a typecast to inform
the compiler that you want the conversion and the warning will be suppressed. This may also mean
you have forgotten the & address operator, e.g.:
If you do intend to use an expression like this, then indicate that this is so by a cast:
386
signed char sc;
unsigned int ui;
ui = sc;
ui = (unsigned char)sc;
double dd;
int i;
i = dd;
i = (int)dd;
int * ip;
int i;
ip = i;
ip = (int * )i;
/ * is this really what you meant? * /
/ * oops -- did you mean ip = &i ? * /
/ * if sc contains 0xff,
ui will contain 0xffff for example * /
Error and Warning Messages
(Parser)
(Parser)

Related parts for SW500010