long long works in debug but not release?

Discussion in 'iOS Programming' started by pinsrw, Dec 13, 2010.

  1. pinsrw macrumors regular

    May 30, 2010
    Hi all,

    I have some code that uses both long long (64 bit integer). I've noticed something strange and I was wondering if anyone has seen this before.

    When I run in debug mode on the device (iPad 4.2.1), my code works fine. When I switch to release mode, it fails. And by doing some simple tests, it appears that long long is compiled in release mode as merely long, but is compiled correctly in debug mode.

    Anyone seen this? Can anyone confirm it? If so then I will submit it as a bug.
  2. bredell macrumors regular

    Mar 30, 2008
    Uppsala, Sweden
    What happens if you use UInt64 or SInt64 instead? You shouldn't use "long long".

Share This Page