Skip to content

Commit

Permalink
Make the PIC macro confuse the type checker less
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericson2314 committed Jun 13, 2022
1 parent 86324f6 commit 64ad1ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/os_pic.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define PIC(x) (x)
#endif
#ifndef PIC
#define PIC(x) pic((void *)x)
#define PIC(x) ((typeof(x)) pic((void *)x))
void *pic(void *linked_address);
void *pic_internal(void *link_address);
#endif

0 comments on commit 64ad1ba

Please sign in to comment.