From c1945f7b54f139a90a31a5227e695e82aa868df2 Mon Sep 17 00:00:00 2001 From: shevernitskiy Date: Thu, 17 Aug 2023 06:32:26 +0300 Subject: [PATCH] fix build err in gcc --- library/include/modules/Textures.h | 2 +- library/modules/Textures.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/include/modules/Textures.h b/library/include/modules/Textures.h index 17cd6e2fc..fa1f743be 100644 --- a/library/include/modules/Textures.h +++ b/library/include/modules/Textures.h @@ -38,7 +38,7 @@ DFHACK_EXPORT std::vector loadTileset(const std::string& file, /** * Get texpos by handle. - * Always use this function, if you need to get valid texpos for your texure. + * Always use this function, if you need to get valid texpos for your texture. * Texpos can change on game textures reset, but handle will be the same. */ DFHACK_EXPORT long getTexposByHandle(TexposHandle handle); diff --git a/library/modules/Textures.cpp b/library/modules/Textures.cpp index 729bf0cae..31575dca0 100644 --- a/library/modules/Textures.cpp +++ b/library/modules/Textures.cpp @@ -120,7 +120,7 @@ std::vector Textures::loadTileset(const std::string& file, int til } DFSDL_FreeSurface(surface); - DEBUG(textures).print("loaded %i textures from '%s'\n", handles.size(), file.c_str()); + DEBUG(textures).print("loaded %zd textures from '%s'\n", handles.size(), file.c_str()); return handles; }