summaryrefslogtreecommitdiff
path: root/csim/load.c
diff options
context:
space:
mode:
authorAlex AUVOLAT <alex.auvolat@ens.fr>2014-01-03 20:41:22 +0100
committerAlex AUVOLAT <alex.auvolat@ens.fr>2014-01-03 20:41:22 +0100
commit1b32dfecc4fd1c9d9d024bb053c43ea17021cc65 (patch)
treea52a6527a6dd0f34f07f61c20b77b42c1d8ff720 /csim/load.c
parent1ff268ab13dd299c4cdc1e379df5397bd6a394e3 (diff)
downloadSystDigit-Projet-1b32dfecc4fd1c9d9d024bb053c43ea17021cc65.tar.gz
SystDigit-Projet-1b32dfecc4fd1c9d9d024bb053c43ea17021cc65.zip
Monitor now works correctly.
Diffstat (limited to 'csim/load.c')
-rw-r--r--csim/load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/csim/load.c b/csim/load.c
index 485a743..e54c0f0 100644
--- a/csim/load.c
+++ b/csim/load.c
@@ -41,7 +41,7 @@ void add_rom(const char *prefix, FILE *file) {
eat_comment(file);
if (fscanf(file, "/%lu", &(rom->data[i]))) {
// ok, value is read
- } else if (fscanf(file, "x%x", &(rom->data[i]))) {
+ } else if (fscanf(file, "x%lx", &(rom->data[i]))) {
// ok, value is read
} else {
rom->data[i] = read_bool(file, NULL);