I'm working on getting an app compatible with iPhone 6, and mostly have just run into type casting issues that need to be resolved. But no matter how I cast this one, I can't get the build to complete successfully.
inline void MTRand::seed( uint32 *const bigSeed, const uint32 seedLength ){
// N is set to 628 up above
register uint32 j = 0;
register int k = (N > seedLength ? N : seedLength); // build fail on this line
// do more stuff
I thought changing it to
register int k = (N > seedLength ? (int)N : (int)seedLength);
would work, but I still get the 'Implicit conversion loses integer precision: 'const uint32' (aka 'const unsigned long') to 'int' error. I'm pretty new to iOS development, so this could be something simple that I'm missing. Any tips?
N? Why not changekto beuint32instead ofint? - rmaddyregister int k = ((int)N > (int)seedLength ? (int)N : (int)seedLength);- pbasdfregister int k = static_cast<int>(N > seedLength ? N : seedLength);- sjdowling