From 4005163d61174b9dd888e3efc3dc134da1fe4489 Mon Sep 17 00:00:00 2001 From: Quinn Date: Thu, 24 Jul 2025 14:53:38 +0200 Subject: [PATCH] fix: use `atrb_pure` for functions reading global state --- src/dat/nbt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dat/nbt.h b/src/dat/nbt.h index 805dd8b..a013108 100644 --- a/src/dat/nbt.h +++ b/src/dat/nbt.h @@ -44,7 +44,7 @@ struct nbt_path { atrb_const int nbt_isprim(u8 tag); /* gets the byte size of an NBT tag's data (excluding id and name), returns `0` upon error. */ -atrb_const size_t nbt_tagdatlen(const u8 *buf); +atrb_pure size_t nbt_tagdatlen(const u8 *buf); /* gets the tag size of primitive types, returns `>0` on success, `<0` on failure */ atrb_const int nbt_primsize(u8 tag);