Skip to content

Commit

Permalink
Added a test from @ee7 that is fixed by this branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
viega committed Jul 5, 2024
1 parent e4566e5 commit 0e2c8c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/con4m/list.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,6 @@ c4m_list_set_slice(c4m_list_t *list,
list->data = (int64_t **)newdata;
list->append_ix = start;

printf("Setting length of list to %d\n", list->length);

read_end(new);
unlock_list(list);
}
Expand Down
10 changes: 10 additions & 0 deletions tests/shr.c4m
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""
Make sure shift right on a signed integer works as expected.
"""
"""
$output:
-1
"""
x = -1
x >>= 0
print(x)

0 comments on commit 0e2c8c2

Please sign in to comment.