AnsweredAssumed Answered

HC12 Compiler ERROR?

Question asked by Matteo Bandini on Mar 1, 2007
Latest reply on Mar 2, 2007 by Matteo Bandini
Why when I write
 
#define BaseI 100
 
...
long tmpLong;
...
if (tmpLong > (1000 * BaseI) ){   // or  (tmpLong > (long)(1000 * BaseI))
  .....
}
 
Don't worK   :smileysad::smileysad:!!!!!!!!!!!!!!!!
 
 
but if I write
 
...
long tmpLong;
...
if (tmpLong > (100000) {
  .....
}
It's work!!!!!!!!!!!!!!!!!!!!!!!!
 
 
Plese HELP

Message Edited by CrasyCat on 2007-04-13 10:42 AM

Outcomes