From b63bbe41bbfe2bb1fde7d94a370c08aee1dd1560 Mon Sep 17 00:00:00 2001 From: Sandro Welte Date: Thu, 8 Feb 2024 19:15:00 +0100 Subject: [PATCH] refactoring: changed variables --- src/arithmeticMultiplication_Double.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arithmeticMultiplication_Double.c b/src/arithmeticMultiplication_Double.c index 845eaa1..f83f0fb 100644 --- a/src/arithmeticMultiplication_Double.c +++ b/src/arithmeticMultiplication_Double.c @@ -2,11 +2,11 @@ #include "arithmeticMultiplication_Double.h" -double* multiplication_double(double num1, double num2) { +double* multiplication_double(double a, double b) { double* result = (double*)malloc(sizeof(double)); if (result == NULL) { return NULL; // Handle memory allocation failure } - *result = num1 * num2; + *result = a * b; return result; }