* be growing the array when out of room.
*/
+#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include "api/c/api_storage.h"
_Tt_api_stg_stack_elm_ptr e = new _Tt_api_stg_stack_elm;
e->entry_type = _Tt_api_stg_stack_elm::STACK_MARK;
- e->addr = (caddr_t) result;
+ e->addr = (caddr_t) (intptr_t) result;
stack->push(e);
return result;
}
if (c->entry_type == _Tt_api_stg_stack_elm::STACK_MARK)
/* It is better to promote mark to caddr_t than to demote addr
field for a 64 bit arch */
- if (c->addr == (caddr_t) mark) {
+ if (c->addr == (caddr_t) (intptr_t) mark) {
found = 1;
}
}
va_dcl
#endif
{
- extern int (*_isfatal_error_set_func())();
+ extern int ( *_isfatal_error_set_func)();
va_list pvar;
int ret;
break;
case ISCNTL_FATAL:
- ret = (int)_isfatal_error_set_func(va_arg(pvar, intfunc));
+ ret = _isfatal_error_set_func(va_arg(pvar, intfunc));
break;
case ISCNTL_FDLIMIT_SET: