5 Replies Latest reply on Dec 10, 2015 1:31 PM by user_1377889

    Defect report: Math errors on int64 and uint64

    evjenth_1483236

      Math errors on int64 and uint64
      Using PSoC creator targeting PSoC5LP development kit

         

      int32 math works fine. No errors found.

         

      int64 or uint64 math fails with no errors at compile or runtime.

         

      Example

         

      uint64 i,j; // i = 1116621
      j=i*1000000 // volts to microvolt

         

      // now j evaluates to 18446744073639054656 or 
      // 0xFFFFFFFFFBCC4D40
      // this looks a lot like a 32bit overflow.
      // why dont the compiler give an error if this is not implemented?