From 5123278748351d4070d42e9c6d4a8caac7a0e376 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Wed, 21 Feb 2024 21:51:26 +0300 Subject: [PATCH] C: clock-malfunction-imitation.c: remove IR leftovers --- c-programming/experiments/clock-malfunction-imitation.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/c-programming/experiments/clock-malfunction-imitation.c b/c-programming/experiments/clock-malfunction-imitation.c index 984a79b..38b1b4e 100644 --- a/c-programming/experiments/clock-malfunction-imitation.c +++ b/c-programming/experiments/clock-malfunction-imitation.c @@ -46,9 +46,8 @@ time_t clock_change_time(time_t* x) { if (ticks_before_accident == 0) { y = 0; - size_t max = sizeof(time_t) / sizeof(int); - printf("max of clock_change_time = %zu\n", max); - size_t intmax_plus_1 = (size_t) INT_MAX + 1; + size_t max = sizeof(time_t) / sizeof(int), + intmax_plus_1 = (size_t) INT_MAX + 1; for (size_t i = 0; i < max; i++) y |= (rand() & INT_MAX) * intmax_plus_1;