Skip to content

Commit

Permalink
misc: fix compilation warning on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Mar 25, 2024
1 parent 41d50cc commit 5dfb274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static inline size_t tjs__malloc_usable_size(const void *ptr) {
#elif defined(_WIN32)
return _msize(ptr);
#elif defined(__linux__) || defined (__CYGWIN__)
return malloc_usable_size(ptr);
return malloc_usable_size((void*) ptr);
#else
// Unknown.
return 0;
Expand Down

0 comments on commit 5dfb274

Please sign in to comment.