parent
467463d061
commit
ef36893637
@ -0,0 +1,25 @@
|
||||
From f7f8d914d12ded4528fe4367854fbd939742f3a1 Mon Sep 17 00:00:00 2001
|
||||
From: Fabio Valentini <decathorpe@gmail.com>
|
||||
Date: Mon, 9 Oct 2023 00:48:38 +0200
|
||||
Subject: [PATCH] Disambiguate num::Integer::div_ceil from <number>::div_ceil
|
||||
|
||||
---
|
||||
src/anon_area.rs | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/anon_area.rs b/src/anon_area.rs
|
||||
index cb37b78..d9d9b6d 100644
|
||||
--- a/src/anon_area.rs
|
||||
+++ b/src/anon_area.rs
|
||||
@@ -61,7 +61,7 @@ impl AnonArea {
|
||||
|
||||
pub fn resize(&mut self, mut size: usize) {
|
||||
size = size.max(Self::UNIT_SIZE);
|
||||
- let nr = size.div_ceil(&Self::UNIT_SIZE);
|
||||
+ let nr = Integer::div_ceil(&size, &Self::UNIT_SIZE);
|
||||
|
||||
self.units.truncate(nr);
|
||||
self.units.reserve(nr);
|
||||
--
|
||||
2.41.0
|
||||
|
Loading…
Reference in new issue