Changeset 897:a45bed7cbef8 in roaraudio for libroar/vio.c
- Timestamp:
- 11/23/08 12:46:39 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/vio.c
r886 r897 35 35 #include "libroar.h" 36 36 37 // this is to avoid warning messages on platforms 38 // where sizeof(void*) == 8 and szeof(int) == 4 39 #ifdef __LP64__ 40 #define INSTINT long int 41 #else 42 #define INSTINT int 43 #endif 44 37 45 int roar_vio_init_calls (struct roar_vio_calls * calls) { 38 46 if ( !calls ) … … 64 72 65 73 int roar_vio_set_fh (struct roar_vio_calls * vio, int fh) { 66 return roar_vio_set_inst(vio, (void*)( fh + 1));74 return roar_vio_set_inst(vio, (void*)(INSTINT)(fh + 1)); 67 75 } 68 76 … … 71 79 return -1; 72 80 73 return ((int) vio->inst) - 1;81 return ((int)(INSTINT)vio->inst) - 1; 74 82 } 75 83
Note: See TracChangeset
for help on using the changeset viewer.