Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
FigBug committed Feb 21, 2024
1 parent 5cc3b8c commit f3551ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/gin/utilities/gin_diff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ std::vector<uint8_t> bsDiff (const juce::String& s1, const juce::String& s2)
return 0;
};

[[maybe_unused]] auto err = bsdiff ((const uint8_t*)s1.toRawUTF8(), s1.getNumBytesAsUTF8(), (const uint8_t*)s2.toRawUTF8(), s2.getNumBytesAsUTF8(), &stream);
[[maybe_unused]] auto err = bsdiff ((const uint8_t*)s1.toRawUTF8(), int64_t (s1.getNumBytesAsUTF8()), (const uint8_t*)s2.toRawUTF8(), int64_t (s2.getNumBytesAsUTF8()), &stream);
jassert (err == 0);

return result;
Expand All @@ -48,7 +48,7 @@ juce::String bsApplyPatch (const juce::String& s, const std::vector<uint8_t>& pa
return -1;
};

[[maybe_unused]] auto err = bspatch ((const uint8_t*)s.toRawUTF8(), s.getNumBytesAsUTF8(), (uint8_t*)mb.getData(), sz, &stream);
[[maybe_unused]] auto err = bspatch ((const uint8_t*)s.toRawUTF8(), int64_t (s.getNumBytesAsUTF8()), (uint8_t*)mb.getData(), sz, &stream);
jassert (err == 0);

return juce::String::fromUTF8 ((const char*)mb.getData());
Expand Down

0 comments on commit f3551ca

Please sign in to comment.