Skip to content

Commit a1c6d96

Browse files
committed
ggml : fix unknown status (#0)
1 parent efd8533 commit a1c6d96

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ggml.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,11 +323,12 @@ float ggml_table_f32_f16[1 << 16];
323323
const char * ggml_status_to_string(enum ggml_status status) {
324324
switch (status) {
325325
case GGML_STATUS_ALLOC_FAILED: return "GGML status: error (failed to allocate memory)";
326-
case GGML_STATUS_FAILED: return "GGML status: error (operation failed)";
327-
case GGML_STATUS_SUCCESS: return "GGML status: success";
328-
case GGML_STATUS_ABORTED: return "GGML status: warning (operation aborted)";
329-
default: GGML_ASSERT(false);
326+
case GGML_STATUS_FAILED: return "GGML status: error (operation failed)";
327+
case GGML_STATUS_SUCCESS: return "GGML status: success";
328+
case GGML_STATUS_ABORTED: return "GGML status: warning (operation aborted)";
330329
}
330+
331+
return "GGML status: unknown";
331332
}
332333

333334
// note: do not use these inside ggml.c

0 commit comments

Comments
 (0)