We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4b4c64 commit 344b99bCopy full SHA for 344b99b
library/core/src/alloc/layout.rs
@@ -384,7 +384,7 @@ impl Layout {
384
pub fn repeat_packed(&self, n: usize) -> Result<Self, LayoutError> {
385
let size = self.size().checked_mul(n).ok_or(LayoutError)?;
386
// The safe constructor is called here to enforce the isize size limit.
387
- Layout::from_size_align(size as usize, self.align())
+ Layout::from_size_align(size, self.align())
388
}
389
390
/// Creates a layout describing the record for `self` followed by
0 commit comments