projects
/
YACASL2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42426ae
)
メモリの初期化時のサイズ不正を修正
author
j8takagi
<j8takagi@nifty.com>
Sun, 7 Mar 2010 02:55:36 +0000
(11:55 +0900)
committer
j8takagi
<j8takagi@nifty.com>
Sun, 7 Mar 2010 02:55:36 +0000
(11:55 +0900)
src/exec.c
patch
|
blob
|
history
diff --git
a/src/exec.c
b/src/exec.c
index
5e1f56d
..
6e0af10
100644
(file)
--- a/
src/exec.c
+++ b/
src/exec.c
@@
-273,7
+273,7
@@
void reset()
GR[i] = 0x0;
}
SP = PR = FR = 0x0;
- memory = malloc(memsize);
+ memory = malloc(memsize
* sizeof(WORD)
);
for(i = 0; i < memsize; i++) {
memory[i] = 0x0;
}