diff src/twjit_in.c @ 8:95f6c8ce33b0

twjit: prep for rework of time delta handling
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 05 Jul 2024 21:57:51 +0000
parents 1bb26347e253
children 117fa99ff871
line wrap: on
line diff
--- a/src/twjit_in.c	Fri Jul 05 21:38:21 2024 +0000
+++ b/src/twjit_in.c	Fri Jul 05 21:57:51 2024 +0000
@@ -80,7 +80,8 @@
 	} else {
 		uint32_t fwd = ts_delta / twjit->ts_quantum;
 
-		if (fwd >= sb->conf.max_future_sec * twjit->quanta_per_sec)
+		if (fwd >= (uint32_t) sb->conf.max_future_sec *
+			   twjit->quanta_per_sec)
 			return INPUT_RESET;
 	}
 	return INPUT_CONTINUE;