Skip to content

Commit 87de1b5

Browse files
authored
fix bug
1 parent a232a2a commit 87de1b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spinlock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void beast_spinlock(beast_atomic_t *lock, int pid)
5454

5555
if (beast_ncpu > 1) {
5656

57-
for (n = 1; n < 129; n << 1) {
57+
for (n = 1; n < 129; n <<= 1) {
5858

5959
if (compare_and_swap(lock, 0, pid)) {
6060
return;

0 commit comments

Comments
 (0)