Conversion problem

uint64_t build_table ( int32_t myparameter ) {

 if ( myparameter == 7 ) {
   return BOOL_TRUE;
 }
 else if
 (myparameter == 29 ) {
   return BOOL_FALSE;
  }
  else
 {
   return 23;
 }

 return 5;
}


Parents
  • Yes, your conversion error is that you have failed to convey what issue you think you are having.

    You aren't telling us what is happening.
    You aren't telling us what you expected should happen.
    You aren't telling us what input parameters you use.
    You aren't even letting us see all constants in use in the posted code.
    Most interesting of all - what condition is expected to return the value 5?

Reply
  • Yes, your conversion error is that you have failed to convey what issue you think you are having.

    You aren't telling us what is happening.
    You aren't telling us what you expected should happen.
    You aren't telling us what input parameters you use.
    You aren't even letting us see all constants in use in the posted code.
    Most interesting of all - what condition is expected to return the value 5?

Children
More questions in this forum