Commit 995106cc authored by Arthur Carlsson's avatar Arthur Carlsson

Minor tweaks

parent b233b128
Pipeline #4060038 passed with stage
in 1 minute and 59 seconds
......@@ -9,7 +9,7 @@ pub struct Cart {
impl Cart {
pub fn new(buf: Vec<u8>) -> Cart {
Cart {
rom: Rom::<BigEndian>::new(buf)
rom: Rom::new(buf)
}
}
}
......@@ -14,7 +14,7 @@ impl PifRom {
}
}
pub fn read_word(&self, i: usize) -> Word {
self.rom.read_word(i)
pub fn read_word(&self, i: u32) -> Word {
self.rom.read_word(i as usize)
}
}
......@@ -8,7 +8,7 @@ pub struct Rom<T: ByteOrder> {
byte_order: PhantomData<T>
}
impl<T: ByteOrder> Rom<T> {
impl<T: ByteOrder> Rom<T> {
pub fn new(buf: Vec<u8>) -> Rom<T> {
Rom {
buf: buf,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment