From 91035bc67568668a5e273c4f2c03b0e95dc389ab Mon Sep 17 00:00:00 2001 From: Emilia Date: Sun, 14 May 2023 20:50:17 -0400 Subject: [PATCH] Disable divisibility checking --- src/data/transfer_region.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/data/transfer_region.rs b/src/data/transfer_region.rs index 7928699..a3aeaa6 100644 --- a/src/data/transfer_region.rs +++ b/src/data/transfer_region.rs @@ -204,6 +204,8 @@ impl TransferRegion<'_> { return Err("Source region is out-of-bounds! (Too wide)"); } // Check that source lengths divide destination lengths + /* This section is disabled because it's not + * strictly necessary to have this property (divisibility) match &self.dest_region { Region::Point(_) => (), Region::Rect(d1, d2) => { @@ -234,6 +236,7 @@ impl TransferRegion<'_> { } } } + */ } }