fix: osx build
This commit is contained in:
parent
84dfca0ee9
commit
61ce4d548c
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ public:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
template <typename T> T *allocate (const size_t length = 1) {
|
template <typename T> T *allocate (const size_t length = 1) {
|
||||||
auto memory = reinterpret_cast <T *> (malloc (cr::max (1u, length * sizeof (T))));
|
auto memory = reinterpret_cast <T *> (malloc (cr::max <size_t> (1u, length * sizeof (T))));
|
||||||
|
|
||||||
if (!memory) {
|
if (!memory) {
|
||||||
plat.abort ();
|
plat.abort ();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue