From bb0c07ef647ca664f8b6caa547fac335003108ff Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 24 Jan 2024 13:55:42 +0100 Subject: [PATCH] changed callback functions for tkch type to int --- src/core/lib/utils/misc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/lib/utils/misc.c b/src/core/lib/utils/misc.c index 55800a2..75a500d 100644 --- a/src/core/lib/utils/misc.c +++ b/src/core/lib/utils/misc.c @@ -36,9 +36,9 @@ along with this program. If not, see . why2_bool seedSet = 0; //DO NOT FUCKING TOUCH THIS!!! -double multiply_cb(int a, int b) { return a * b; } -double subtract_cb(int a, int b) { return a - b; } -double sum_cb(int a, int b) { return a + b; } +int multiply_cb(int a, int b) { return a * b; } +int subtract_cb(int a, int b) { return a - b; } +int sum_cb(int a, int b) { return a + b; } int unlink_cb(const char *fpath, WHY2_UNUSED const struct stat *sb, WHY2_UNUSED int typeflag, WHY2_UNUSED struct FTW *ftwbuf) { @@ -258,7 +258,7 @@ void why2_generate_text_key_chain(char *key, int *textKeyChain, int textKeyChain { int numberBuffer; int numberBuffer2; - double (*cb)(int, int); + int (*cb)(int, int); for (int i = 0; i < textKeyChainSize; i++) {