projects
/
YACASL2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c52541e
)
微修正
author
j8takagi
<j8takagi@nifty.com>
Fri, 26 Feb 2010 15:39:00 +0000
(
00:39
+0900)
committer
j8takagi
<j8takagi@nifty.com>
Fri, 26 Feb 2010 15:50:41 +0000
(
00:50
+0900)
src/assemble.c
patch
|
blob
|
history
src/word.c
patch
|
blob
|
history
diff --git
a/src/assemble.c
b/src/assemble.c
index
aedbb11
..
9fbfa96
100644
(file)
--- 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
(file)
--- 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';