diff options
author | joerg <joerg@pkgsrc.org> | 2016-12-21 13:37:24 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2016-12-21 13:37:24 +0000 |
commit | 683d5a8406e0df3195bcad66217e5c3d18cb41c3 (patch) | |
tree | 742db2a53d8c3361140b6476c17d6bf8f2698597 /geography/gpsbabel/patches | |
parent | 9ff10b281eed76ab727e8cea10abb8084b9e05dc (diff) | |
download | pkgsrc-683d5a8406e0df3195bcad66217e5c3d18cb41c3.tar.gz |
Pointers are not signed, so don't check them as such.
Diffstat (limited to 'geography/gpsbabel/patches')
-rw-r--r-- | geography/gpsbabel/patches/patch-bushnell.cc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/geography/gpsbabel/patches/patch-bushnell.cc b/geography/gpsbabel/patches/patch-bushnell.cc new file mode 100644 index 00000000000..3802eb6f679 --- /dev/null +++ b/geography/gpsbabel/patches/patch-bushnell.cc @@ -0,0 +1,24 @@ +$NetBSD: patch-bushnell.cc,v 1.1 2016/12/21 13:37:24 joerg Exp $ + +Don't check pointer signs. + +--- bushnell.cc.orig 2016-12-21 00:00:02.839899031 +0000 ++++ bushnell.cc +@@ -135,7 +135,7 @@ bushnell_get_icon_from_name(QString name + name = "Waypoint"; + } + +- for (t = bushnell_icons; t->icon > 0; t++) { ++ for (t = bushnell_icons; t->icon; t++) { + if (0 == name.compare(t->icon, Qt::CaseInsensitive)) { + return t->symbol; + } +@@ -147,7 +147,7 @@ static const char* + bushnell_get_name_from_symbol(signed int s) + { + icon_mapping_t* t; +- for (t = bushnell_icons; t->icon > 0; t++) { ++ for (t = bushnell_icons; t->icon; t++) { + if (s == t->symbol) { + return t->icon; + } |