summaryrefslogtreecommitdiff
path: root/examples/table-spreadsheet-with-keyboard-nav.cxx
diff options
context:
space:
mode:
authorfire-eggs <lifeattickville@gmail.com>2021-08-30 10:51:29 -0400
committerAlbrecht Schlosser <albrechts.fltk@online.de>2021-08-30 22:13:32 +0200
commit753631a0b57ba417701167d1e4dd24df0b923254 (patch)
tree8374ef1a68228c91d78118f587ad7072341d542a /examples/table-spreadsheet-with-keyboard-nav.cxx
parent975d34de4313e0cd29fc652b051c1afc1d8bf607 (diff)
Fix MSVC compiler warnings (PR #267)
Diffstat (limited to 'examples/table-spreadsheet-with-keyboard-nav.cxx')
-rw-r--r--examples/table-spreadsheet-with-keyboard-nav.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/table-spreadsheet-with-keyboard-nav.cxx b/examples/table-spreadsheet-with-keyboard-nav.cxx
index 66273ceb9..ec8714df3 100644
--- a/examples/table-spreadsheet-with-keyboard-nav.cxx
+++ b/examples/table-spreadsheet-with-keyboard-nav.cxx
@@ -102,7 +102,7 @@ public:
input->resize(X,Y,W,H); // Move Fl_Input widget there
char s[30]; sprintf(s, "%d", values[R][C]); // Load input widget with cell's current value
input->value(s);
- input->position(0,strlen(s)); // Select entire input field
+ input->position(0,int(strlen(s))); // Select entire input field
input->show(); // Show the input widget, now that we've positioned it
input->take_focus();
}