summaryrefslogtreecommitdiffstats
path: root/ChangeLog
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2012-09-16 12:28:25 -0700
committerKaz Kylheku <kaz@kylheku.com>2012-09-16 12:28:25 -0700
commit14e48e6f78988bc323908df944fe0a534a38629d (patch)
tree963ddca6bf0e1e1e76362d9aa6d29e704af32fc1 /ChangeLog
parent04a89cc3d83a71b5c9b5df7088d2408e8f7b8a40 (diff)
downloadtxr-14e48e6f78988bc323908df944fe0a534a38629d.tar.gz
txr-14e48e6f78988bc323908df944fe0a534a38629d.tar.bz2
txr-14e48e6f78988bc323908df944fe0a534a38629d.zip
* stream.c (vformat): Fix bug in ~x format directive for printing
integers in hex. When we use the printf's %x conversion specifiers for fixnums, we get incorrect results when the values are negative, because the argument is actually treated as an unsigned integer. The end result is that (format t "~x" -1) produces FFFFFFFF rather than -1. Also, merged together mindless code duplication.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog9
1 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3281ad6a..9fee44f5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2012-09-16 Kaz Kylheku <kaz@kylheku.com>
+ * stream.c (vformat): Fix bug in ~x format directive for printing
+ integers in hex. When we use the printf's %x conversion specifiers for
+ fixnums, we get incorrect results when the values are negative, because
+ the argument is actually treated as an unsigned integer.
+ The end result is that (format t "~x" -1) produces FFFFFFFF
+ rather than -1. Also, merged together mindless code duplication.
+
+2012-09-16 Kaz Kylheku <kaz@kylheku.com>
+
* parser.l: Implemented hexadecimal integer constants.
These will be very useful since bit operations are about
to be implemented.