diff options
author | kroki/tomash@moonlight.home <> | 2007-03-16 20:50:37 +0300 |
---|---|---|
committer | kroki/tomash@moonlight.home <> | 2007-03-16 20:50:37 +0300 |
commit | 1812656d90f7d6d3db961500779c7ee8b8bea780 (patch) | |
tree | 9a537944e57f84b7149549ae8bf95fc6c7fe8d23 /sql/event_data_objects.cc | |
parent | 0aab823c286e4705b4fcb57cec07cb8c5d45ce91 (diff) | |
download | mariadb-git-1812656d90f7d6d3db961500779c7ee8b8bea780.tar.gz |
Fix compilation on Windows broken with the push of bug#16420.
Fix three compilation warnings.
Diffstat (limited to 'sql/event_data_objects.cc')
-rw-r--r-- | sql/event_data_objects.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/event_data_objects.cc b/sql/event_data_objects.cc index 36f20c34200..4a78c1affb0 100644 --- a/sql/event_data_objects.cc +++ b/sql/event_data_objects.cc @@ -1293,7 +1293,7 @@ bool get_next_time(const Time_zone *time_zone, my_time_t *next, time, and this will greatly reduce the effect of the optimization. So instead we keep the code simple and clean. */ - interval.month= diff_months - diff_months % months; + interval.month= (ulong) (diff_months - diff_months % months); next_time= add_interval(&local_start, time_zone, INTERVAL_MONTH, interval); if (next_time == 0) @@ -1301,7 +1301,7 @@ bool get_next_time(const Time_zone *time_zone, my_time_t *next, if (next_time <= time_now) { - interval.month= months; + interval.month= (ulong) months; next_time= add_interval(&local_start, time_zone, INTERVAL_MONTH, interval); if (next_time == 0) |