Projects

Ticket #168 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

NSNotFound is different from returned values

Reported by: psychs@… Owned by: lsansonetti@…
Priority: blocker Milestone: MacRuby 0.4
Component: MacRuby Keywords:
Cc:

Description

Code:

s = 'test'
r = s.rangeOfString 'abc'
puts r.location
puts NSNotFound

Output:

9223372036854775807
2147483647

Change History

Changed 3 years ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to MacRuby 0.4

There were 2 problems: 1) the BS parser does not take into account the value64 field in 64-bit mode 2) the value64 field for NSNotFound is incorrect in Foundation.bridgesupport.

1) was fixed and 2) was temporarily work-around'ed (it will be fixed in a future Mac OS X release) in r756/trunk.

Note: See TracTickets for help on using tickets.