Skip to content

Commit fb324a4

Browse files
committed
Minor tweaks for float functions
1 parent 0fa534a commit fb324a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/amx/amxfloat.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ static cell AMX_NATIVE_CALL n_floatsin(AMX *amx,const cell *params)
289289
*/
290290
REAL fA = amx_ctof(params[1]);
291291
fA = ToRadians(fA, params[2]);
292-
fA = (float)sin(fA);
292+
fA = (REAL)sin(fA);
293293
(void)amx;
294294
return amx_ftoc(fA);
295295
}
@@ -304,7 +304,7 @@ static cell AMX_NATIVE_CALL n_floatcos(AMX *amx,const cell *params)
304304
*/
305305
REAL fA = amx_ctof(params[1]);
306306
fA = ToRadians(fA, params[2]);
307-
fA = (float)cos(fA);
307+
fA = (REAL)cos(fA);
308308
(void)amx;
309309
return amx_ftoc(fA);
310310
}
@@ -319,7 +319,7 @@ static cell AMX_NATIVE_CALL n_floattan(AMX *amx,const cell *params)
319319
*/
320320
REAL fA = amx_ctof(params[1]);
321321
fA = ToRadians(fA, params[2]);
322-
fA = (float)tan(fA);
322+
fA = (REAL)tan(fA);
323323
(void)amx;
324324
return amx_ftoc(fA);
325325
}

0 commit comments

Comments
 (0)