I am trying to port some code over to a LPC2378 ARM-7 MCU that makes use of "long long" variables. I have not been getting any compiler errors over variables being declared as "long long" but when I try to compare or perform arithmetic operations on these variables I get the following error: "error: #41: expression must have arithmetic or pointer type"
Here is an example from my code:
int Compare(long long a, long long b) { if (a <= b) { return 1; } return 0; }
Any ideas on what I can do?
Thanks, Eric
Okay, thanks.
Here is how I call that function:
if (Compare(sessionTable[i].accessTime, t) && sessionTable[i].inUse == 0) { ... }
Where sessionTable.accessTime is a long long.
-Eric