aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-05-31 00:26:46 +0200
committerChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-05-31 00:26:46 +0200
commit11c22d1b549ceb13bb40df760bd64872d4303c74 (patch)
tree072d67369c7c94ffc40e903c619e4b648e978b53 /src
parentadjust abstract type names with namespace (diff)
get better more/thorough tests for the native wrapper
Diffstat (limited to 'src')
-rw-r--r--src/tm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tm.c b/src/tm.c
index 9385190..a88ac36 100644
--- a/src/tm.c
+++ b/src/tm.c
@@ -11,6 +11,7 @@ static JanetMethod jd_tm_methods[] = {
{NULL, NULL},
};
+// WARNING: this only works if they're BOTH localtime or gmtime
static int jd_tm_compare(void *lhs, void *rhs) {
struct tm lhp = (*(struct tm*)lhs);
struct tm rhp = (*(struct tm*)rhs);