title: Why did my tool throw a MISRA error here?
body: <p>What can I do to avoid MISRA giving this error for the code below? I tried casting with (unit16_t). But then it didn't allow an explicit conversion.</p>
  
  <p>Illegal implicit conversion from underlying MISRA type "unsigned char" to "unsigned int" in complex expression (MISRA C 2004 rule 10.1) </p>
  
  <pre>
   uint8_t rate = 3U; 
   uint8_t percentage = 130U;      
   uint16_t basic_units = rate * percentage;
  </pre>