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