mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
Make change_base function public
This commit is contained in:
parent
fe0e9f8196
commit
34981ea3dd
|
@ -6,7 +6,7 @@ use core::{
|
|||
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Debug)]
|
||||
pub struct Num<const N: usize>(i32);
|
||||
|
||||
fn change_base<const N: usize, const M: usize>(num: Num<N>) -> Num<M> {
|
||||
pub fn change_base<const N: usize, const M: usize>(num: Num<N>) -> Num<M> {
|
||||
if N < M {
|
||||
Num(num.0 << (M - N))
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue