summaryrefslogtreecommitdiff
path: root/sql/sql_window.cc
diff options
context:
space:
mode:
authorSergei Petrunia <psergey@askmonty.org>2016-04-11 23:59:51 +0200
committerSergei Petrunia <psergey@askmonty.org>2016-04-11 23:59:51 +0200
commit0f62eee2f8707062f61ade0827ee74bf7e5cd7b9 (patch)
treeb65a3e98b4c33e0daba56f77c92bbf8f748ce3d9 /sql/sql_window.cc
parent419c92506971a42d752d0ae1980b4d5756cc1a97 (diff)
downloadmariadb-git-0f62eee2f8707062f61ade0827ee74bf7e5cd7b9.tar.gz
Fix compiler warning
Diffstat (limited to 'sql/sql_window.cc')
-rw-r--r--sql/sql_window.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_window.cc b/sql/sql_window.cc
index d4de1ac57c6..cd7d8df0c93 100644
--- a/sql/sql_window.cc
+++ b/sql/sql_window.cc
@@ -1281,7 +1281,7 @@ public:
n_rows_to_skip= n_rows + (is_top_bound? 1:0) - 1;
/* Bottom bound "ROWS 0 PRECEDING" is a special case: */
- if (n_rows_to_skip == -1)
+ if (n_rows_to_skip == ha_rows(-1))
{
cursor.get_next();
item->add();