summaryrefslogtreecommitdiff
path: root/csim/sim.c
diff options
context:
space:
mode:
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++;
}
}