aboutsummaryrefslogtreecommitdiffstats
path: root/solar.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-02-22 14:31:55 +0100
committerMattias Andrée <m@maandree.se>2026-02-22 14:31:55 +0100
commit56ef05de70fd5bf74ba34959b46ed033bbac76a7 (patch)
treeb5c1fc6fc8b42ec83137096e2bfce0c9b264b342 /solar.c
parentlibred_get_colour.3: update grammar (diff)
downloadlibred-56ef05de70fd5bf74ba34959b46ed033bbac76a7.tar.gz
libred-56ef05de70fd5bf74ba34959b46ed033bbac76a7.tar.bz2
libred-56ef05de70fd5bf74ba34959b46ed033bbac76a7.tar.xz
msic fixes
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'solar.c')
-rw-r--r--solar.c8
1 files changed, 4 insertions, 4 deletions
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