comparing two long values in obj-c++ strange
<pre><code>  long a = (long)ABRecordGetRecordID(personRec);

  long b =[[arrayObj objectAtIndex:l] longValue];


  NSLog(@" AddressBook ID : %d , IntersectionID : %d", a, b);
</code></pre>

<p>\  my a value is 6901 and b value is 6905</p>

<p>\NSLog shows AddressBook ID : 6901 , IntersectionID : 6905"</p>

<p>but when I do this</p>

<pre><code>  if(a == b)
{
NSLog (@"Blah"); 
}
</code></pre>

<p>I am always getting this condition as true...it's very weird and I don't know what's happening here?</p>
