summaryrefslogtreecommitdiff
path: root/csim/sim.c
diff options
context:
space:
mode:
authorAlex AUVOLAT <alex.auvolat@ens.fr>2013-11-12 16:15:59 +0100
committerAlex AUVOLAT <alex.auvolat@ens.fr>2013-11-12 16:15:59 +0100
commitb6b536727b7e3cb0dc0463ab6a4bdec757ff466b (patch)
tree70da98d1c5155740d766b5712ff6aa044ef78e4b /csim/sim.c
parentf4deea25fd83783c087d7b5023b68bc27f30476f (diff)
downloadSystDigit-Projet-b6b536727b7e3cb0dc0463ab6a4bdec757ff466b.tar.gz
SystDigit-Projet-b6b536727b7e3cb0dc0463ab6a4bdec757ff466b.zip
Minor changes.
Diffstat (limited to 'csim/sim.c')
-rw-r--r--csim/sim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/csim/sim.c b/csim/sim.c
index 56c061b..db2c736 100644
--- a/csim/sim.c
+++ b/csim/sim.c
@@ -30,7 +30,7 @@ t_machine *init_machine (t_program *p) {
char *o = p->vars[i].name + 1;
while (*o) {
if (*o == '1') m->var_values[i] |= a;
- a >>= 1;
+ a <<= 1;
o++;
}
}