From 93cee61e8fc0ddfb3f23469ad840f3e77067eb48 Mon Sep 17 00:00:00 2001 From: j8takagi Date: Sat, 27 Feb 2010 00:39:00 +0900 Subject: [PATCH] =?utf8?q?=E5=BE=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/assemble.c | 2 +- src/word.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/assemble.c b/src/assemble.c index aedbb11..9fbfa96 100644 --- a/src/assemble.c +++ b/src/assemble.c @@ -421,7 +421,7 @@ bool assemble(const char *file, PASS pass) } for(; ;) { cmdl = malloc(sizeof(CMDLINE)); - line = malloc(LINESIZE+1); + line = malloc(LINESIZE + 1); if((line = fgets(line, LINESIZE, fp)) == NULL) { break; } diff --git a/src/word.c b/src/word.c index 655e766..294c4d4 100644 --- a/src/word.c +++ b/src/word.c @@ -74,8 +74,7 @@ char *word2n(WORD word) char *word2bit(const WORD word) { WORD mask = 0x8000; - char *bit, *p; - bit = malloc(16 + 1); + char *bit = malloc(16 + 1), *p; p = bit; do { *p++ = (word & mask) ? '1' : '0'; -- 2.18.0