On 09/10/2016 00:30, BartC wrote:
#include <stdint.h>
int main(void) {
unsigned char* p;
unsigned char* q;
int64_t value;
p = q - value; // line 8
}
I get these errors:
Error c.c: 8 operands of - have illegal types 'pointer to unsigned
char' and 'long long'
Error c.c: 8 operands of = have illegal types 'pointer to unsigned
char' and 'int'
Is there something wrong with the code, or is it a compiler bug?
(BTW it's not urgent, as I use (int)value as a workaround.)
--
Bartc
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)