diff --git a/src/pystencils/backend/platforms/generic_cpu.py b/src/pystencils/backend/platforms/generic_cpu.py
index e1a34564d195ac16312768735facdf33990c7239..3deb033293ee38066dc09ed2fa97e1e71a84c156 100644
--- a/src/pystencils/backend/platforms/generic_cpu.py
+++ b/src/pystencils/backend/platforms/generic_cpu.py
@@ -63,12 +63,12 @@ class GenericCpu(Platform):
         arg_types = (dtype,) * func.num_args
 
         if isinstance(dtype, PsScalarType) and func in (NumericLimitsFunctions.Min, NumericLimitsFunctions.Max):
+            cfunc: CFunction
             cfunc = CFunction(f"{dtype.c_string()}_{func.function_name}".capitalize(), arg_types, dtype)
             call.function = cfunc
             return call
 
         if isinstance(dtype, PsIeeeFloatType) and dtype.width in (32, 64):
-            cfunc: CFunction
             match func:
                 case (
                     MathFunctions.Exp