summaryrefslogtreecommitdiff
path: root/ZAPD/ZBlob.cpp
diff options
context:
space:
mode:
authorlouist103 <35883445+louist103@users.noreply.github.com>2021-03-19 14:52:04 -0400
committerGitHub <noreply@github.com>2021-03-19 14:52:04 -0400
commit1675f20955dca5f94fdf4b6b1f28532da9c83665 (patch)
treeed80703d09b11b416c0f81cc09708ebcb10d0479 /ZAPD/ZBlob.cpp
parent50122b91242734ebf893af9f64b674127b73d831 (diff)
Fix all warnings output by Clang++ (#94)
* started on basic type errors * Done. For now * remove libgfxd binary * Fix Clang Warnings * Fix2 * Fix rollback of #92 and missed warning in ZCutscene.cpp * ? * add stdexcept to ZResource * Fix make clean * PR fixes * Fix make file stuff * Remove many more errors and remove -Wall * Turns out Globals was used Co-authored-by: Fig02 <fig02srl@gmail.com>
Diffstat (limited to 'ZAPD/ZBlob.cpp')
-rw-r--r--ZAPD/ZBlob.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/ZAPD/ZBlob.cpp b/ZAPD/ZBlob.cpp
index 012d934..26fefea 100644
--- a/ZAPD/ZBlob.cpp
+++ b/ZAPD/ZBlob.cpp
@@ -48,7 +48,6 @@ ZBlob* ZBlob::BuildFromXML(XMLElement* reader, const std::string& inFolder, bool
ZBlob* ZBlob::FromFile(const std::string& filePath)
{
- int comp;
ZBlob* blob = new ZBlob();
blob->name = StringHelper::Split(Path::GetFileNameWithoutExtension(filePath), ".")[0];
blob->rawData = File::ReadAllBytes(filePath);
@@ -61,7 +60,7 @@ string ZBlob::GetSourceOutputCode(const std::string& prefix)
sourceOutput = "";
//sourceOutput += StringHelper::Sprintf("u8 %s_%s[] = \n{\n", prefix.c_str(), name.c_str());
- for (int i = 0; i < rawData.size(); i += 1)
+ for (uint32_t i = 0; i < rawData.size(); i += 1)
{
if (i % 16 == 0)
sourceOutput += "\t";