From 820cb847170e9b9e479764d0e22aaf44a6782130 Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 4 May 2009 05:49:35 +0000 Subject: [PATCH] ...it should be a compile error to reference a constant in the RHS of the declaration of that same constant... --- src/rtc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtc.cpp b/src/rtc.cpp index 79b9bfce0..43c7f977c 100644 --- a/src/rtc.cpp +++ b/src/rtc.cpp @@ -97,7 +97,7 @@ static void MovieTime(void) { //but, we were imagining that one day we might need more precision const u32 arm9rate_unitsperframe = 560190<<1; - const u32 arm9rate_unitspersecond = (u32)(arm9rate_unitspersecond * 59.8261); + const u32 arm9rate_unitspersecond = (u32)(arm9rate_unitsperframe * 59.8261); const u64 noon = (u64)arm9rate_unitspersecond * 60 * 60 * 12; u64 frameCycles = (u64)arm9rate_unitsperframe * currFrameCounter;