[hackers] [scc] emitcast: fix format string, actually use second parameter || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Sat, 10 Oct 2015 12:32:56 +0200 (CEST)

commit d3344817e4d71f8bebc20ea57eace1ac53e5cc3d
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
AuthorDate: Sat Oct 10 12:32:04 2015 +0200
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Sat Oct 10 12:32:04 2015 +0200

    emitcast: fix format string, actually use second parameter

diff --git a/cc1/code.c b/cc1/code.c
index c1b021c..4d1441b 100644
--- a/cc1/code.c
+++ b/cc1/code.c
_AT_@ -324,7 +324,7 @@ emitcast(unsigned op, void *arg)
 
         emitnode(lp);
         if (np->type != voidtype)
- printf("\tg%c", lp->type->letter, np->type->letter);
+ printf("\tg%c", np->type->letter);
 }
 
 static void
Received on Sat Oct 10 2015 - 12:32:56 CEST

This archive was generated by hypermail 2.3.0 : Sat Oct 10 2015 - 12:36:12 CEST