Commit 987c1d8
Merging fix from ruby_1_8 branch for bug ruby#118.
* lib/set.rb (SortedSet#add): Do not let an uncomparable object
in. [Bug ruby#118]
* lib/set.rb (Set#merge): Only directly use the passed objects
@hash instance variable when self and the passed object are
instances of the same class. [Bug ruby#118]
* Original: e872e1d
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Signed-off-by: Charles Oliver Nutter <[email protected]>1 parent 6d83962 commit 987c1d8
1 file changed
+40
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
261 | | - | |
| 260 | + | |
| 261 | + | |
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
437 | | - | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
438 | 466 | | |
439 | 467 | | |
440 | 468 | | |
| |||
459 | 487 | | |
460 | 488 | | |
461 | 489 | | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
462 | 496 | | |
463 | 497 | | |
464 | 498 | | |
| |||
478 | 512 | | |
479 | 513 | | |
480 | 514 | | |
| 515 | + | |
481 | 516 | | |
482 | | - | |
483 | | - | |
| 517 | + | |
484 | 518 | | |
485 | 519 | | |
486 | 520 | | |
| |||
0 commit comments