Co-authored-by: scottmcm <scottmcm@users.noreply.github.com>
This commit is contained in:
Christopher Durham 2022-06-30 00:17:21 -04:00 committed by GitHub
parent c4b4c64804
commit 344b99bd9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ impl Layout {
pub fn repeat_packed(&self, n: usize) -> Result<Self, LayoutError> {
let size = self.size().checked_mul(n).ok_or(LayoutError)?;
// The safe constructor is called here to enforce the isize size limit.
Layout::from_size_align(size as usize, self.align())
Layout::from_size_align(size, self.align())
}
/// Creates a layout describing the record for `self` followed by