@rf
Сегодня в рубрике "няшная сишка" следующий код:

printf("%lf %d\n", samples_shift, -samples_per_carrier_period);
assert(samples_shift >= -samples_per_carrier_period);

выводит следующее:

1.000000 -10
ampliphase-fl2k: ampliphase-fl2k.c:79: generate_shifted_carrier: Assertion `samples_shift >= -samples_per_carrier_period' failed.

Собирается gcc-11.2.1_p20220115 с -Wall -Werror без проблем. Кто угадал в чём ошибка - тот молодец^Wэксперт сишки.

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.