C5500: Incompatible pointer operation

[WARNING]

Description

Two pointers of different sizes are subtracted (pointer difference).

Example
  void main(void) {

  
    int *p;

  
    int *far q;

  
    

  
    *(p-q) = 0;  (Error)

  
  }

  
Tips

Cast one of the pointer to get equal size.

See also