Skip to content

Commit

Permalink
Fix alignment issue in read()
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongseok-meta authored and nem0 committed Jun 22, 2024
1 parent 183010c commit ef49292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ofbx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ static bool decompress(const u8* in, size_t in_size, u8* out, size_t out_size)
template <typename T> static OptionalError<T> read(Cursor* cursor)
{
if (cursor->current + sizeof(T) > cursor->end) return Error("Reading past the end");
T value = *(const T*)cursor->current;
T value = read_value<T>(cursor->current);
cursor->current += sizeof(T);
return value;
}
Expand Down

0 comments on commit ef49292

Please sign in to comment.