Skip to content

Commit

Permalink
Alignment issues
Browse files Browse the repository at this point in the history
  • Loading branch information
FigBug committed Feb 18, 2024
1 parent 30d803c commit f8e8c34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/gin/utilities/gin_diff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ std::vector<uint8_t> bsDiff (const juce::String& s1, const juce::String& s2)

juce::String bsApplyPatch (const juce::String& s, const std::vector<uint8_t>& patch)
{
uint32_t sz = *(uint32_t*)patch.data();
uint32_t sz;
memcpy (&sz, patch.data(), sizeof (sz));

juce::MemoryBlock mb (sz + 1, true);

Expand Down

0 comments on commit f8e8c34

Please sign in to comment.