Skip to content

Commit

Permalink
Change variable declaration for "for" loop
Browse files Browse the repository at this point in the history
  • Loading branch information
mesheets committed Jul 23, 2024
1 parent 6985856 commit ce3806e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xs/lisp/eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -1433,17 +1433,18 @@ object eval(object e) {
int ts;
if (check_int_args(base)) goto LERROR;
ts = INTval(e = base[0]);
int snooze_counter = 0;
#ifdef RCX
while (ts-- > 0) {
for (int i = 0; i < 10; i++) {
for (snooze_counter = 0; snooze_counter < 10; snooze_counter++) {
if (interrupted()) goto LERROR;
msleep(100);
}
}
#else
#ifdef JOINT
while (ts-- > 0) {
for (int i = 0; i < 10; i++) {
for (snooze_counter = 0; snooze_counter < 10; snooze_counter++) {
if (interrupted()) goto LERROR;
usleep(100000);
}
Expand Down

0 comments on commit ce3806e

Please sign in to comment.