Skip to content

Commit 0f62eee

Browse files
committed
Fix compiler warning
1 parent 419c925 commit 0f62eee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/sql_window.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ class Frame_n_rows_preceding : public Frame_cursor
12811281
n_rows_to_skip= n_rows + (is_top_bound? 1:0) - 1;
12821282

12831283
/* Bottom bound "ROWS 0 PRECEDING" is a special case: */
1284-
if (n_rows_to_skip == -1)
1284+
if (n_rows_to_skip == ha_rows(-1))
12851285
{
12861286
cursor.get_next();
12871287
item->add();

0 commit comments

Comments
 (0)