Skip to content

Commit

Permalink
load function: change size parameter type from int to size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
uwefoken authored and nem0 committed May 6, 2024
1 parent 27df0a9 commit 75401ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ofbx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4046,7 +4046,7 @@ bool Scene::finalize() {
return true;
}

IScene* load(const u8* data, int size, u16 flags, JobProcessor job_processor, void* job_user_ptr)
IScene* load(const u8* data, size_t size, u16 flags, JobProcessor job_processor, void* job_user_ptr)
{
std::unique_ptr<Scene> scene(new Scene());
scene->m_data.resize(size);
Expand Down
2 changes: 1 addition & 1 deletion src/ofbx.h
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ struct IScene
};


IScene* load(const u8* data, int size, u16 flags, JobProcessor job_processor = nullptr, void* job_user_ptr = nullptr);
IScene* load(const u8* data, size_t size, u16 flags, JobProcessor job_processor = nullptr, void* job_user_ptr = nullptr);
const char* getError();
double fbxTimeToSeconds(i64 value);
i64 secondsToFbxTime(double value);
Expand Down

0 comments on commit 75401ee

Please sign in to comment.