Fix issue where !x was actually calculating !!x.
authorDavid Given <dg@cowlark.com>
Sat, 31 Dec 2016 00:14:04 +0000 (00:14 +0000)
committerDavid Given <dg@cowlark.com>
Sat, 31 Dec 2016 00:14:04 +0000 (00:14 +0000)
lang/b/compiler/b1.c

index 30ce5c7..e959e79 100644 (file)
@@ -291,7 +291,7 @@ rcexpr(struct tnode *tr)
 
        case EXCLA:
                rcexpr(tr->tr1);
-               C_tne();
+               C_teq();
                return;
 
        case NEG: