summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d76d251)
raw | patch | inline | side by side (parent: d76d251)
author | Manuel Luis Sanmartín Rozada <manuel.luis@gmail.com> | |
Thu, 19 Jun 2014 13:14:02 +0000 (15:14 +0200) | ||
committer | Manuel Luis Sanmartín Rozada <manuel.luis@gmail.com> | |
Thu, 19 Jun 2014 13:14:02 +0000 (15:14 +0200) |
src/java.c | patch | blob | history |
diff --git a/src/java.c b/src/java.c
index b69ca946b301c36a367c114e98666c7b33e69acd..ee503550bda2840a1fa6bdd465e2a11abca68642 100644 (file)
--- a/src/java.c
+++ b/src/java.c
#undef SET_STRING
/* Set the `time' member. Java stores time in milliseconds. */
- status = ctoj_long (jvm_env, ((jlong) n->time) * ((jlong) 1000),
+ status = ctoj_long (jvm_env, (jlong) CDTIME_T_TO_MS (n->time),
c_notification, o_notification, "setTime");
if (status != 0)
{
return (-1);
}
/* Java measures time in milliseconds. */
- n->time = (time_t) (tmp_long / ((jlong) 1000));
+ n->time = MS_TO_CDTIME_T(tmp_long);
status = jtoc_int (jvm_env, &tmp_int,
class_ptr, object_ptr, "getSeverity");