summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
39f2a3c)
char * is a pointer to a string in the default address space, not a generic pointer
to a string. As such, the compiler (at least 2.9.0) mis-compiles this if the
cast is included.
task = ao_tasks[i];
pc_loc = task->stack_count - 17;
printf("%12s: wchan %04x pc %04x\n",
task = ao_tasks[i];
pc_loc = task->stack_count - 17;
printf("%12s: wchan %04x pc %04x\n",
(int16_t) task->wchan,
(task->stack[pc_loc]) | (task->stack[pc_loc+1] << 8));
}
(int16_t) task->wchan,
(task->stack[pc_loc]) | (task->stack[pc_loc+1] << 8));
}