aboutsummaryrefslogtreecommitdiff
path: root/examples/test-print.cpp
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-04-12 01:13:52 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-04-12 17:44:27 -0400
commitf72d2948a8daec00b4090fb8b80e8cfe6377100d (patch)
tree29ce7016621bd7ee380e136af20ab1a7d8b5d666 /examples/test-print.cpp
parentb99df81845ea89279771ac0ce9278dce1dd44905 (diff)
Compromise Print implementation.
The users really hated the code size requirements for an snprintf()-based Print implementation, but I really hated how bad the old implementation was. Revised version fixes bugs related to printing 64-bit values and has some improved behavior when it comes to printing doubles. Now, instead of happily printing garbage values when large doubles are printed, we try printing "<large double>" or "-<large double>" (depending on sign) when the argument is too big for the old strategy to accommodate.
Diffstat (limited to 'examples/test-print.cpp')
0 files changed, 0 insertions, 0 deletions