Skip to content

Commit

Permalink
fixing issue with static casts
Browse files Browse the repository at this point in the history
  • Loading branch information
Kbz-8 committed Dec 21, 2023
1 parent 79b01a5 commit cae3db0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/core/application.inl
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
#define CHECK_WINDOW_PTR(win) \
if(win == nullptr) \
{ \
core::error::report(e_kind::error, "invalid window ptr (NULL) passed to '%s'", MLX_FUNC_SIG); \
core::error::report(e_kind::error, "invalid window ptr (NULL)"); \
return; \
} \
else if(*static_cast<int*>(win) < 0 || *static_cast<std::size_t*>(win) > _graphics.size())\
else if(*static_cast<int*>(win) < 0 || *static_cast<int*>(win) > static_cast<int>(_graphics.size()))\
{ \
core::error::report(e_kind::error, "invalid window ptr passed to '%s'", MLX_FUNC_SIG); \
core::error::report(e_kind::error, "invalid window ptr"); \
return; \
} else {}\

Expand Down
2 changes: 1 addition & 1 deletion src/core/bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/04 17:35:20 by maldavid #+# #+# */
/* Updated: 2023/12/16 20:20:41 by maldavid ### ########.fr */
/* Updated: 2023/12/21 15:50:47 by maldavid ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down

0 comments on commit cae3db0

Please sign in to comment.