diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2012-09-24 12:22:20 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2012-09-24 12:22:20 -0700 |
commit | 7458d8311b5c81177559145b1fc8576d9a99c3d3 (patch) | |
tree | fd56c3ec3f52e134106ec9a7ad36f8ba27ffb672 | |
parent | 20bcf160207f5c4fc7a0e11bbba2adb36b74ca63 (diff) | |
download | txr-7458d8311b5c81177559145b1fc8576d9a99c3d3.tar.gz txr-7458d8311b5c81177559145b1fc8576d9a99c3d3.tar.bz2 txr-7458d8311b5c81177559145b1fc8576d9a99c3d3.zip |
* arith.c (logand): Fix incorrect return value.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | arith.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2012-09-24 Kaz Kylheku <kaz@kylheku.com> + + * arith.c (logand): Fix incorrect return value. + 2012-09-18 Kaz Kylheku <kaz@kylheku.com> * arith.c (logtest): New function. @@ -1621,7 +1621,7 @@ bad: val logtest(val a, val b) { /* TODO: optimize */ - return logand(a, b) == zero; + return logand(a, b) == zero ? t : nil; } static val comp_trunc(val a, val bits) |