diff options
author | Sergei Golubchik <sergii@pisem.net> | 2011-03-26 11:59:34 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2011-03-26 11:59:34 +0100 |
commit | e016a2f5f00774f8126974fa26c7550bf0e60c84 (patch) | |
tree | 4db64207e28ec3b6c18d1f2a3fbd69126313a3db /include/my_time.h | |
parent | c41b66c07f4c8de57154644aae97d075f4766170 (diff) | |
download | mariadb-git-e016a2f5f00774f8126974fa26c7550bf0e60c84.tar.gz |
lp:705210 Compiling with BUILD/compile-pentium64-debug fails
Diffstat (limited to 'include/my_time.h')
-rw-r--r-- | include/my_time.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/my_time.h b/include/my_time.h index db1795eeb6e..5ec51685489 100644 --- a/include/my_time.h +++ b/include/my_time.h @@ -158,9 +158,12 @@ static inline longlong sec_part_unshift(longlong second_part, int digits) } static inline ulong sec_part_truncate(ulong second_part, int digits) { - return second_part - second_part % log_10_int[MAX_SEC_PART_DIGITS - digits]; + /* the cast here should be unnecessary! */ + return second_part - second_part % (ulong)log_10_int[MAX_SEC_PART_DIGITS - digits]; } +#define hrtime_to_my_time(X) ((my_time_t)hrtime_to_time(X)) + /* Available interval types used in any statement. |