summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();