mirror of
https://git.coom.tech/drummyfish/small3dlib.git
synced 2024-11-23 20:59:58 +01:00
Remove clang warning
This commit is contained in:
parent
012a802f98
commit
7bfc96fd29
2 changed files with 7 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
PROGRAM=testSDL
|
||||
PROGRAM=helloTerminal
|
||||
|
||||
clear; clear; g++ -x c -g -fmax-errors=5 -pedantic -Wall -Wextra -o $PROGRAM $PROGRAM.c -lSDL2 2>&1 >/dev/null && ./$PROGRAM
|
||||
clear; clear; g++ -x c -g -fmax-errors=5 -pedantic -O3 -Wall -Wextra -o $PROGRAM $PROGRAM.c -lSDL2 2>&1 >/dev/null && ./$PROGRAM
|
||||
#clear; clear; clang -x c -g -pedantic -O3 -Wall -Wextra -o $PROGRAM $PROGRAM.c -lSDL2 2>&1 >/dev/null && ./$PROGRAM
|
||||
|
|
|
@ -1286,9 +1286,12 @@ S3L_Unit S3L_sin(S3L_Unit x)
|
|||
int8_t positive = 1;
|
||||
|
||||
if (x < S3L_SIN_TABLE_LENGTH)
|
||||
x = x;
|
||||
{
|
||||
}
|
||||
else if (x < S3L_SIN_TABLE_LENGTH * 2)
|
||||
{
|
||||
x = S3L_SIN_TABLE_LENGTH * 2 - x - 1;
|
||||
}
|
||||
else if (x < S3L_SIN_TABLE_LENGTH * 3)
|
||||
{
|
||||
x = x - S3L_SIN_TABLE_LENGTH * 2;
|
||||
|
|
Loading…
Reference in a new issue