Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/image.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarat Dukhan <maratek@gmail.com>2015-06-02 06:38:40 +0300
committerMarat Dukhan <maratek@gmail.com>2015-06-02 06:38:40 +0300
commitf9ca80c3fb62cfc11b2504e004805caa431dcfb2 (patch)
tree84467389e7c7b0023f079d987832aee9577f27c7 /generic
parent3bfddde25ee41f9f3abf67faa77433af0a6aeff4 (diff)
Use sinf and cosf instead of non-standard sincosf
Diffstat (limited to 'generic')
-rwxr-xr-xgeneric/image.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/image.c b/generic/image.c
index aef35ff..27469ab 100755
--- a/generic/image.c
+++ b/generic/image.c
@@ -303,7 +303,8 @@ static int image_(Main_rotate)(lua_State *L)
xc=src_width/2.0;
yc=src_height/2.0;
- sincosf(theta, &sin_theta, &cos_theta);
+ sin_theta = sinf(theta);
+ cos_theta = cosf(theta);
for(j = 0; j < dst_height; j++) {
jd=j;