Skip to content

Commit

Permalink
Merge pull request #87 from project-mahiwa/fix/rad-double
Browse files Browse the repository at this point in the history
fix ラジアン指定なのにintなのはおかしい(intと出てくる謎)
  • Loading branch information
usuyuki authored Dec 14, 2023
2 parents 70569a1 + 2b6d870 commit aee1b2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/wasm-functions/arduino/arduino.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ m3ApiRawFunction(m3_randomSeed)
*/
m3ApiRawFunction(m3_cos)
{
m3ApiGetArg(int, rad);
m3ApiGetArg(double, rad);
m3ApiReturnType(double);

m3ApiReturn(cos(rad));
Expand All @@ -55,7 +55,7 @@ m3ApiRawFunction(m3_cos)

m3ApiRawFunction(m3_sin)
{
m3ApiGetArg(int, rad);
m3ApiGetArg(double, rad);
m3ApiReturnType(double);

m3ApiReturn(sin(rad));
Expand All @@ -65,7 +65,7 @@ m3ApiRawFunction(m3_sin)

m3ApiRawFunction(m3_tan)
{
m3ApiGetArg(int, rad);
m3ApiGetArg(double, rad);
m3ApiReturnType(double);

m3ApiReturn(tan(rad));
Expand Down

0 comments on commit aee1b2f

Please sign in to comment.