From 43ee18a2caa7b4f1643ccb3c1c17247c474ee8cc Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 30 Dec 2024 23:12:05 -0800 Subject: [PATCH] fix 1-indexed block id --- src/v1.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v1.rs b/src/v1.rs index 3386644..72b4257 100644 --- a/src/v1.rs +++ b/src/v1.rs @@ -285,7 +285,7 @@ impl std::error::Error for Error{} #[binrw] #[brw(little)] #[derive(Debug,Clone,Copy)] -pub struct BlockId(u32); +pub struct BlockId(#[br(map=|i:u32|i-1)]u32); #[binrw] #[brw(little)]