From 34981ea3ddf8f371862fb8d20d509b0906a4abe7 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Sat, 5 Jun 2021 16:35:58 +0100 Subject: [PATCH] Make change_base function public --- agb/src/number.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agb/src/number.rs b/agb/src/number.rs index 812ef05b..9590798a 100644 --- a/agb/src/number.rs +++ b/agb/src/number.rs @@ -6,7 +6,7 @@ use core::{ #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug)] pub struct Num(i32); -fn change_base(num: Num) -> Num { +pub fn change_base(num: Num) -> Num { if N < M { Num(num.0 << (M - N)) } else {