diff --git a/epicardium/modules/hardware.c b/epicardium/modules/hardware.c
index 800cb9c65d0334939a319f66af82af895512dd01..afc44f64b7e241b0603b8239fd0aa5b8cdd0c2ff 100644
--- a/epicardium/modules/hardware.c
+++ b/epicardium/modules/hardware.c
@@ -95,7 +95,7 @@ int hardware_early_init(void)
 		;
 
 	/* If we don't have a valid time yet, set it to 2019-01-01 */
-	if (RTC_GetSecond() < 1546300800UL) {
+	if (RTC_GetSecond() < 1546300800L) {
 		epic_rtc_set_milliseconds(1546300800UL * 1000);
 	}