forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcb0bcf4
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 parentc02bc63 commitcb0bcf4
1 file changed
+13
-19
lines changedLines changed: 13 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
473 | 473 |
| |
474 | 474 |
| |
475 | 475 |
| |
476 |
| - | |
| 476 | + | |
477 | 477 |
| |
478 |
| - | |
| 478 | + | |
479 | 479 |
| |
480 | 480 |
| |
481 | 481 |
| |
482 |
| - | |
483 |
| - | |
| 482 | + | |
| 483 | + | |
484 | 484 |
| |
485 |
| - | |
| 485 | + | |
486 | 486 |
| |
487 | 487 |
| |
488 |
| - | |
489 |
| - | |
| 488 | + | |
| 489 | + | |
490 | 490 |
| |
491 |
| - | |
| 491 | + | |
492 | 492 |
| |
493 | 493 |
| |
494 |
| - | |
495 |
| - | |
| 494 | + | |
| 495 | + | |
496 | 496 |
| |
497 |
| - | |
| 497 | + | |
498 | 498 |
| |
499 | 499 |
| |
500 |
| - | |
501 |
| - | |
502 |
| - | |
503 |
| - | |
504 |
| - | |
505 |
| - | |
506 |
| - | |
| 500 | + | |
507 | 501 |
| |
508 |
| - | |
| 502 | + | |
509 | 503 |
| |
510 | 504 |
| |
511 | 505 |
| |
|
0 commit comments
Comments
(0)