summaryrefslogtreecommitdiff
path: root/src/c/elementaryFunctions/sin
diff options
context:
space:
mode:
Diffstat (limited to 'src/c/elementaryFunctions/sin')
-rw-r--r--src/c/elementaryFunctions/sin/i16sins.c2
-rw-r--r--src/c/elementaryFunctions/sin/i8sins.c2
-rw-r--r--src/c/elementaryFunctions/sin/u16sins.c2
-rw-r--r--src/c/elementaryFunctions/sin/u8sins.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/c/elementaryFunctions/sin/i16sins.c b/src/c/elementaryFunctions/sin/i16sins.c
index 3a8dc4d..6fcbd26 100644
--- a/src/c/elementaryFunctions/sin/i16sins.c
+++ b/src/c/elementaryFunctions/sin/i16sins.c
@@ -14,5 +14,5 @@
#include "sin.h"
float i16sins(int16 x) {
- return (sin(x));
+ return (sin((double)x));
}
diff --git a/src/c/elementaryFunctions/sin/i8sins.c b/src/c/elementaryFunctions/sin/i8sins.c
index 4e6deab..2382356 100644
--- a/src/c/elementaryFunctions/sin/i8sins.c
+++ b/src/c/elementaryFunctions/sin/i8sins.c
@@ -14,5 +14,5 @@
#include "sin.h"
float i8sins(int8 x) {
- return (sin(x));
+ return (sin((double)x));
}
diff --git a/src/c/elementaryFunctions/sin/u16sins.c b/src/c/elementaryFunctions/sin/u16sins.c
index 9610248..651b8e1 100644
--- a/src/c/elementaryFunctions/sin/u16sins.c
+++ b/src/c/elementaryFunctions/sin/u16sins.c
@@ -14,5 +14,5 @@
#include "sin.h"
float u16sins(uint16 x) {
- return (sin(x));
+ return (sin((double)x));
}
diff --git a/src/c/elementaryFunctions/sin/u8sins.c b/src/c/elementaryFunctions/sin/u8sins.c
index 50e8bfe..f7c982f 100644
--- a/src/c/elementaryFunctions/sin/u8sins.c
+++ b/src/c/elementaryFunctions/sin/u8sins.c
@@ -14,5 +14,5 @@
#include "sin.h"
float u8sins(uint8 x) {
- return (sin(x));
+ return (sin((double)x));
}