From 20b07572df61c6fe7d8cde731aa88b2b145b316a Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Tue, 2 Dec 2025 14:07:01 +0100 Subject: Fix two compiler warnings [-Wsign-compare] --- examples/table-sort.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/table-sort.cxx b/examples/table-sort.cxx index 7b4a4aa0d..f979693f9 100644 --- a/examples/table-sort.cxx +++ b/examples/table-sort.cxx @@ -9,7 +9,7 @@ // but to demonstrate the complexities of an actual app. // // Copyright 2010 Greg Ercolano. -// Copyright 1998-2010 by Bill Spitzak and others. +// Copyright 2011-2025 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -158,7 +158,7 @@ void MyTable::draw_cell(TableContext context, int R, int C, int X, int Y, int W, case CONTEXT_COL_HEADER: fl_push_clip(X,Y,W,H); { fl_draw_box(FL_THIN_UP_BOX, X,Y,W,H, FL_BACKGROUND_COLOR); - if ( C < G_header.size() ) { + if ( C < (int)G_header.size() ) { fl_font(HEADER_FONTFACE, HEADER_FONTSIZE); fl_color(FL_BLACK); fl_draw(G_header[C].c_str(), X+2,Y,W,H, FL_ALIGN_LEFT, 0, 0); // +2=pad left @@ -193,7 +193,7 @@ void MyTable::autowidth(int pad) { int w, h; // Initialize all column widths to header width fl_font(HEADER_FONTFACE, HEADER_FONTSIZE); - for ( int c=0; c