• Inacurate precision truncating.
    Hi folk, I have u16 wTemp = 0; fsingle fTemp = 17.5123; wTemp = (u16)fTemp; Somehow, the wTemp is 17. Technically, the wTemp should be 18, do anybody know what do I have to do for the compiler...
  • How to truncate a file ?
    We are using Keil 5.22 and RTL library on a LPC1768 board on which we have an SD card interface. All the usual file access works, fopen(), fprintf(), fdelete(), frename() etc... However I can...
  • C Question - '=': value truncated
    Why does the following code produce a C192: '=': value truncated error? They are all uint8_t's. Structure definition shown below. What is there to truncate, all variables are of the exact same type!...
  • warning C108: '=': possible value truncation
    Hello, there might be an undetected overrun in the result of 'a * b'. So i used the cast ((unsigned long long int)a to force the result of 'a * b' to long long. Unfortunately this compiler warning...
  • warning: implicit truncation from 'int' to bitfield....
    Dear Forum, I have searched all of Keil's website, manuals and the internet about this issue and have found nothing that can eliminate this compiler warning in my "C" source code. I am getting...