Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
formatting
  • Loading branch information
arihant2math committed Mar 24, 2025
commit ab8aa0c15383e6a06877982eb51ddb143852b87d
4 changes: 2 additions & 2 deletions vm/src/stdlib/ctypes/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl Callable for PyCArrayType {
Ok(PyCArray {
typ: PyRwLock::new(zelf.inner.typ.read().clone()),
length: AtomicCell::new(zelf.inner.length.load()),
value: PyRwLock::new(zelf.inner.value.read().clone())
value: PyRwLock::new(zelf.inner.value.read().clone()),
}
.into_pyobject(&vm))
}
Expand Down Expand Up @@ -66,7 +66,7 @@ impl Constructor for PyCArray {
Ok(Self {
typ: PyRwLock::new(args.0),
length: AtomicCell::new(args.1),
value: PyRwLock::new(vm.ctx.none())
value: PyRwLock::new(vm.ctx.none()),
}
.into_pyobject(&vm))
}
Expand Down