summaryrefslogtreecommitdiff
path: root/src/Fl_Table_Row.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2019-04-29 11:36:21 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2019-04-29 11:36:21 +0200
commitbb55c9251d388eea4b689e7b2ee44769b0db5acf (patch)
treecbbae4e4c2e1fc673f671d1356c9511bf3611758 /src/Fl_Table_Row.cxx
parent738cce154e45cf8c33d504ad62d19ebb42b1b9ac (diff)
Fix compiler warning (issue #25)
src/Fl_Table_Row.cxx:56:25: warning: argument 2 range [18446744071562067969, 18446744073709551615] exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=] arr = (char*)realloc(arr, count * sizeof(char)); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ Fixes #25
Diffstat (limited to 'src/Fl_Table_Row.cxx')
-rw-r--r--src/Fl_Table_Row.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Table_Row.cxx b/src/Fl_Table_Row.cxx
index 1dc132acc..29a0a1557 100644
--- a/src/Fl_Table_Row.cxx
+++ b/src/Fl_Table_Row.cxx
@@ -53,7 +53,7 @@ Fl_Table_Row::CharVector::~CharVector() { // DTOR
void Fl_Table_Row::CharVector::size(int count) {
if (count != _size) {
- arr = (char*)realloc(arr, count * sizeof(char));
+ arr = (char*)realloc(arr, (unsigned)count * sizeof(char));
_size = count;
}
}