diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-08-04 20:22:44 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-08-04 20:22:44 -0700 |
commit | f4c63c7c6779b8dd9b1fc850d27b2a502486c1de (patch) | |
tree | 1e4c6296b8e04953dcbf86c1496765df4ef7d3f1 | |
parent | 6a83bc09dbf0ae14e98c891b5a9fd0c424a0e07b (diff) | |
download | txr-f4c63c7c6779b8dd9b1fc850d27b2a502486c1de.tar.gz txr-f4c63c7c6779b8dd9b1fc850d27b2a502486c1de.tar.bz2 txr-f4c63c7c6779b8dd9b1fc850d27b2a502486c1de.zip |
* stream.c (vormat): Bugfix: when width specified as *
meets a negative argument, the width should be treated
as positive and the field left aligned. Instead, the
width is treated as zero.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | stream.c | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -1,5 +1,12 @@ 2015-08-04 Kaz Kylheku <kaz@kylheku.com> + * stream.c (vormat): Bugfix: when width specified as * + meets a negative argument, the width should be treated + as positive and the field left aligned. Instead, the + width is treated as zero. + +2015-08-04 Kaz Kylheku <kaz@kylheku.com> + * stream.c (string_out_put_string): Do not return nil when buffer calculations overflow, but throw exception. @@ -2209,7 +2209,7 @@ val vformat(val stream, val fmtstr, va_list vl) do_digits: switch (saved_state) { case vf_width: - if (width < 0) { + if (digits < 0) { width = -digits; align = al_left; } else { |