From 83983bbb84a01701f2f6771ebc4a68dd80df8578 Mon Sep 17 00:00:00 2001 From: LoganDark Date: Fri, 26 May 2023 05:22:32 -0700 Subject: [PATCH] last second move things over in the error enum (#71) I realized I didn't give enough space for additional failure modes to be added in the future, and I should do this as soon as possible to prevent things from being made that depend on the old constants --- rwkv.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rwkv.h b/rwkv.h index beb6a81..b43cf77 100644 --- a/rwkv.h +++ b/rwkv.h @@ -32,12 +32,12 @@ extern "C" { enum rwkv_error_flags { RWKV_ERROR_NONE = 0, - RWKV_ERROR_ARGS = 1 << 4, - RWKV_ERROR_FILE = 2 << 4, - RWKV_ERROR_MODEL = 3 << 4, - RWKV_ERROR_MODEL_PARAMS = 4 << 4, - RWKV_ERROR_GRAPH = 5 << 4, - RWKV_ERROR_CTX = 6 << 4, + RWKV_ERROR_ARGS = 1 << 8, + RWKV_ERROR_FILE = 2 << 8, + RWKV_ERROR_MODEL = 3 << 8, + RWKV_ERROR_MODEL_PARAMS = 4 << 8, + RWKV_ERROR_GRAPH = 5 << 8, + RWKV_ERROR_CTX = 6 << 8, RWKV_ERROR_ALLOC = 1, RWKV_ERROR_FILE_OPEN = 2,