iphone - Set maximum value of NSInteger -


*sorry if has been posted before have been looking 30 mins , cant find anything*

hi, have nsinteger called currentcoins , want coins maximum value 999. have tried including

#undef nsintegermax #define nsintegermax 999 

but nsinteger isn't taking notice of this. has got solutions? (i'm doing ios)

thanks in advance.

you should never ever redefine system define nsintegermax. set type of system building app (32 or 64 bit).

just define own max like:

#define kmaxcoins 999 

Comments

Popular posts from this blog

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -