Skip to content

Commit f61894d

Browse files
committed
Fix typo in assert.
1 parent 78be2e6 commit f61894d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test_spinlock.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ int main(int argc, char **argv) {
5353
_exit(0);
5454

5555
for(i = 0; i < bufsz; i++)
56-
assert(buf[i] = 2 * LOOPS);
56+
assert(buf[i] == 2 * LOOPS);
5757

5858
printf("SUCCESS! exiting\n");
5959
return 0;

0 commit comments

Comments
 (0)