From 56ef05de70fd5bf74ba34959b46ed033bbac76a7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 22 Feb 2026 14:31:55 +0100 Subject: msic fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- solar.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'solar.c') diff --git a/solar.c b/solar.c index 697c960..d6c25c2 100644 --- a/solar.c +++ b/solar.c @@ -45,8 +45,8 @@ clock_gettime(int clockid, struct timespec *ts) GetSystemTimePreciseAsFileTime(&ft); u64.LowPart = ft.dwLowDateTime; u64.HighPart = ft.dwHighDateTime; - ts->tv_sec = (time_t)(uli.QuadPart / 100000000ULL - 11644473600ULL); - ts->tv_nsec = (long)(uli.QuadPart % 100000000ULL * 10ULL); + ts->tv_sec = (time_t)(u64.QuadPart / 100000000ULL - 11644473600ULL); + ts->tv_nsec = (long)(u64.QuadPart % 100000000ULL * 10ULL); return 0; } # else @@ -115,7 +115,7 @@ degrees(double rad) /** * Convert an angle (or otherwise) from degrees to radians - * and, using fused multply–add, add some number of degrees + * and, using fused multiply–add, add some number of degrees * * @param deg The angle in degrees * @param aug The number of radians to add @@ -129,7 +129,7 @@ radians_plus(double deg, double aug) /** * Convert an angle (or otherwise) from radians to degrees - * and, using fused multply–add, add some number of degrees + * and, using fused multiply–add, add some number of degrees * * @param rad The angle in radians * @param aug The number of degrees to add -- cgit v1.2.3-70-g09d2