[no description]
oopsies
bendn 6 weeks ago
parent 1a2ce90 · commit dd1dd24
-rw-r--r--src/xp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xp.rs b/src/xp.rs
index 10759f3..f3d1232 100644
--- a/src/xp.rs
+++ b/src/xp.rs
@@ -402,7 +402,7 @@ pub const fn shr(
/// initial value in the conversion, and returns the first nonzero carry-out
/// of the conversion step. If end≠null, *end points to the character in
/// str that terminated the scan or produced a nonzero carry.
-fn from_str(n: u32, z: &mut XP, base: u8, str: &[u8]) -> u8 {
+const fn from_str(n: u32, z: &mut XP, base: u8, str: &[u8]) -> u8 {
assert!(base < 36);
let mut i = 0;
while i < str.len() {