fix: typo
This commit is contained in:
parent
571dca5715
commit
a53e51796e
1 changed files with 1 additions and 1 deletions
|
@ -265,7 +265,7 @@ static void ggml_metal_log(enum ggml_log_level level, const char * format, ...){
|
|||
|
||||
static void * ggml_metal_host_malloc(size_t n) {
|
||||
void * data = malloc(n);
|
||||
if (data == null) {
|
||||
if (data == NULL) {
|
||||
GGML_METAL_LOG_ERROR("%s: error: malloc failed\n", __func__);
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue