[iOS] [SW1.4P] When [index in text] not found: doesn't return -1 [1.4]

kidbeyond

  • Posts: 89
Re: the [index of text in text] function:

When it doesn't find the search string in the target string, it's supposed to return -1.

But currently, it returns 2147483648 (the largest possible integer, yes?).

« Last Edit: January 11, 2012, 10:57:16 pm by Jon »

Jon

  • *
  • Posts: 17524
It turns out that the return value isn't -1 because value is an unsigned integer, so it goes with INT_MAX. I'll see if I can work around it.

Jon

  • *
  • Posts: 17524
Fixed for 1.4 Preview 3.