- Notifications
You must be signed in to change notification settings - Fork5
Commitfd2e2d0
committed
Rewrite pg_size_pretty() to avoid compiler bug.
Convert it to use successive shifts right instead of increasing a divisor.This is probably a tad more efficient than the original coding, and it'snicer-looking than the previous patch because we don't need a special caseto avoid overflow in the last branch. But the real reason to do it is toavoid a Solaris compiler bug, as per results from buildfarm member moa.1 parentc49e4ae commitfd2e2d0
1 file changed
+13
-19
lines changedLines changed: 13 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
466 | 466 |
| |
467 | 467 |
| |
468 | 468 |
| |
469 |
| - | |
| 469 | + | |
470 | 470 |
| |
471 |
| - | |
| 471 | + | |
472 | 472 |
| |
473 | 473 |
| |
474 | 474 |
| |
475 |
| - | |
476 |
| - | |
| 475 | + | |
| 476 | + | |
477 | 477 |
| |
478 |
| - | |
| 478 | + | |
479 | 479 |
| |
480 | 480 |
| |
481 |
| - | |
482 |
| - | |
| 481 | + | |
| 482 | + | |
483 | 483 |
| |
484 |
| - | |
| 484 | + | |
485 | 485 |
| |
486 | 486 |
| |
487 |
| - | |
488 |
| - | |
| 487 | + | |
| 488 | + | |
489 | 489 |
| |
490 |
| - | |
| 490 | + | |
491 | 491 |
| |
492 | 492 |
| |
493 |
| - | |
494 |
| - | |
495 |
| - | |
496 |
| - | |
497 |
| - | |
498 |
| - | |
499 |
| - | |
| 493 | + | |
500 | 494 |
| |
501 |
| - | |
| 495 | + | |
502 | 496 |
| |
503 | 497 |
| |
504 | 498 |
| |
|
0 commit comments
Comments
(0)