From 651fe243e6dcb31e9838f5816eaa00206309f59c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 13 Mar 2021 03:14:41 +1100 Subject: Cleanup: const warning --- source/blender/blenloader/intern/readfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/blenloader') diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index e809b22cdbf..347ee1378a4 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -555,14 +555,14 @@ static void read_file_version(FileData *fd, Main *main) } } -static bool blo_bhead_is_id(BHead *bhead) +static bool blo_bhead_is_id(const BHead *bhead) { /* BHead codes are four bytes (like 'ENDB', 'TEST', etc.), but if the two most-significant bytes * are zero, the values actually indicate an ID type. */ return bhead->code <= 0xFFFF; } -static bool blo_bhead_is_id_valid_type(BHead *bhead) +static bool blo_bhead_is_id_valid_type(const BHead *bhead) { if (!blo_bhead_is_id(bhead)) { return false; -- cgit v1.2.3