Skip to content

Commit

Permalink
suppress overflow.
Browse files Browse the repository at this point in the history
Reported by OBATA Akio. Thanks!!!
  • Loading branch information
kou committed Sep 4, 2010
1 parent bb2eab1 commit 6490e45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unit/core/test-inspect.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@ test_time(void)
g_time_val_from_iso8601("2010-05-31T11:50:29.29+0900", &g_time_value);
time_value = grn_obj_open(context, GRN_BULK, 0, GRN_DB_TIME);
GRN_TIME_SET(context, time_value,
g_time_value.tv_sec * G_USEC_PER_SEC + g_time_value.tv_usec);
(gint64)g_time_value.tv_sec * G_USEC_PER_SEC +
g_time_value.tv_usec);
inspected = grn_inspect(context, NULL, time_value);
cut_assert_equal_string(cut_take_printf("%ld.29", g_time_value.tv_sec),
inspected_string());
Expand Down

0 comments on commit 6490e45

Please sign in to comment.