This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

type conversion

i have the followin program
float a;
long int c;
float b;

now i haave an expression
a = b- c*0.05

however when i run this expression in simulator the values are correct...however in the machine it gives me some other garbage value...

realtime values are
c = 102929
b= 457461

expected value of a = 452314.6
found value of a = 1358481
wat cld be the problem..

Parents
  • nopes there are lots of warning.....but no errors....the code runs...only these values are corrupt...rest all is fine...

    linking...
    *** WARNING L13: RECURSIVE CALL TO SEGMENT

    *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY
    *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL .

Reply
  • nopes there are lots of warning.....but no errors....the code runs...only these values are corrupt...rest all is fine...

    linking...
    *** WARNING L13: RECURSIVE CALL TO SEGMENT

    *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY
    *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL .

Children