Skip to content

Commit

Permalink
fix ラジアン指定なのにintなのはおかしい(intと出てくる謎)
Browse files Browse the repository at this point in the history
  • Loading branch information
usuyuki committed Dec 14, 2023
1 parent 8986ec7 commit 2b6d870
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 2b6d870

Please sign in to comment.