1
0

template.c: IS_SIGNED check: make compile-time

This commit is contained in:
パチュリー・ノーレッジ 2024-01-09 19:24:34 +03:00
parent 19b2edfc4b
commit 2f2b44de76
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

@ -154,8 +154,9 @@ main(void)
long double bytebeat_res = bytebeat((long double) w);
// 2. if signed, then wrap up into unsigned
if (IS_SIGNED)
bytebeat_res = signed_to_unsigned(bytebeat_res);
#if IS_SIGNED
bytebeat_res = signed_to_unsigned(bytebeat_res);
#endif
// 3. convert audio data to sample
SAMPLE_TYPE sample_res = (SAMPLE_TYPE)