Sep 25, 2012
02:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 25, 2012
02:34 PM
Hi, I have the following problem -
void dispfunc( signed long * dispval);
I want to call it with -
unsigned long testval = 0;
dispfunc( &testval );
Compiler, HiTech, warns illegal conversion bewteen pointer types. I would
have thought a signed and unsigned long ptr no different.
I tried various casts, cannot get it to work.
Regards, Dana.
Labels
- Labels:
-
PSoC 1
2 Replies
Anonymous
Not applicable
Sep 25, 2012
08:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 25, 2012
08:40 PM
It compiles under Imagecraft compiler using this line:
dispfunc( (signed long *)&testval );
However I don't know if the generated code would be functionnal.
Sep 26, 2012
06:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 26, 2012
06:57 AM
Thanks, compiles in HiTech, will know later today if it is working.
Regards, Dana.