From d5520c11a30aa3aaac24b33b127d84002804fab3 Mon Sep 17 00:00:00 2001 From: Eric Bagus Date: Thu, 8 Feb 2024 19:50:09 +0100 Subject: [PATCH] refactoring: changed variables for long method similar to integer method --- src/arithmeticDivision.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/arithmeticDivision.c b/src/arithmeticDivision.c index 34949dd..dfdf00a 100644 --- a/src/arithmeticDivision.c +++ b/src/arithmeticDivision.c @@ -16,11 +16,11 @@ int* division_integer(int dividend, int divisor) { return result; } -long* division_long(long num1, long num2) { - if(num2 == 0) { +long* division_long(long dividend, long divisor) { + if(divisor == 0) { return NULL; } long* result = malloc(sizeof(long)); - *result = num1 / num2; + *result = dividend / divisor; return result; } \ No newline at end of file