X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fword.c;h=294c4d4d7b777feddae9ee9900bf872ecc845ce5;hb=b591284405a5b29213db6250c830e1f63d11a4f0;hp=655e766271198eadd77b1caa4a4220c2e228b384;hpb=a901ac636091cc9d044a78525064b699ef7a2760;p=YACASL2.git 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';