Error: expression must be a pointer to a complete object type (?)

前端 未结 1 1372
無奈伤痛
無奈伤痛 2020-12-20 03:59

This is the function in C that I need to modify. I am trying to have PREVIOUS 4 bytes of address starting from \"box\" to compare with a returned U32 value from rt_tsk

相关标签:
1条回答
  • 2020-12-20 04:39

    You're trying to dereference a void *. That won't work. Try this instead:

    if (*(((uint32_t *)box)-1) != rt_tsk_self()) {
    
    0 讨论(0)
提交回复
热议问题