- Notifications
You must be signed in to change notification settings - Fork5k
Commit9b51d50
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 parent1aa24e2 commit9b51d50
1 file changed
+13
-19
lines changedLines changed: 13 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
381 | 381 |
| |
382 | 382 |
| |
383 | 383 |
| |
384 |
| - | |
| 384 | + | |
385 | 385 |
| |
386 |
| - | |
| 386 | + | |
387 | 387 |
| |
388 | 388 |
| |
389 | 389 |
| |
390 |
| - | |
391 |
| - | |
| 390 | + | |
| 391 | + | |
392 | 392 |
| |
393 |
| - | |
| 393 | + | |
394 | 394 |
| |
395 | 395 |
| |
396 |
| - | |
397 |
| - | |
| 396 | + | |
| 397 | + | |
398 | 398 |
| |
399 |
| - | |
| 399 | + | |
400 | 400 |
| |
401 | 401 |
| |
402 |
| - | |
403 |
| - | |
| 402 | + | |
| 403 | + | |
404 | 404 |
| |
405 |
| - | |
| 405 | + | |
406 | 406 |
| |
407 | 407 |
| |
408 |
| - | |
409 |
| - | |
410 |
| - | |
411 |
| - | |
412 |
| - | |
413 |
| - | |
414 |
| - | |
| 408 | + | |
415 | 409 |
| |
416 |
| - | |
| 410 | + | |
417 | 411 |
| |
418 | 412 |
| |
419 | 413 |
| |
|
0 commit comments
Comments
(0)