Commit 0f62eee2 authored by Sergei Petrunia's avatar Sergei Petrunia

Fix compiler warning

parent 419c9250
...@@ -1281,7 +1281,7 @@ class Frame_n_rows_preceding : public Frame_cursor ...@@ -1281,7 +1281,7 @@ class Frame_n_rows_preceding : public Frame_cursor
n_rows_to_skip= n_rows + (is_top_bound? 1:0) - 1; n_rows_to_skip= n_rows + (is_top_bound? 1:0) - 1;
/* Bottom bound "ROWS 0 PRECEDING" is a special case: */ /* 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(); cursor.get_next();
item->add(); item->add();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment