In my app I have a function that returns a bool from a long long value _flightId
which is initially assigned 0
. At some point before calling the function below it is usually assigned a value.
@property (nonatomic, assign) long long flightId;
- (BOOL)isReady
{
return (_flightId);
}
The problem is that sometimes, even tough it is assigned a different value than 0
, the function will return 0
.
For example:
if _flightId
= 92559101
the function will return 1
.
If _flightId
= 92559104
the function will return 0
.
Can somebody explain this behavior?