pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
widelands: Switch patch to c++ style casts
Module Name: pkgsrc-wip
Committed By: Paul Ripke <stix%stix.id.au@localhost>
Pushed By: stix
Date: Mon Jul 29 13:57:00 2024 +1000
Changeset: 72a8b9f9b8a83be4ef75d9e7c4d024cbbdd71b1b
Modified Files:
widelands/distinfo
widelands/patches/patch-src_graphic_text_textstream.cc
Log Message:
widelands: Switch patch to c++ style casts
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=72a8b9f9b8a83be4ef75d9e7c4d024cbbdd71b1b
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
widelands/distinfo | 2 +-
widelands/patches/patch-src_graphic_text_textstream.cc | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diffs:
diff --git a/widelands/distinfo b/widelands/distinfo
index 6f85bb9129..082a694231 100644
--- a/widelands/distinfo
+++ b/widelands/distinfo
@@ -7,5 +7,5 @@ SHA1 (patch-CMakeLists.txt) = e13b1a8f45d4a3c650476ab4cd0ab45c6101394d
SHA1 (patch-src_CMakeLists.txt) = f833ae4b06e81cc7a147e1e5a03c02fad92370c1
SHA1 (patch-src_base_i18n.cc) = 785cdfaca59f929de14dde96386f9e9cfca27e21
SHA1 (patch-src_base_i18n.h) = 687296e3e654e3ed09e648a83571e282ed251bfb
-SHA1 (patch-src_graphic_text_textstream.cc) = 5ea49e63daf5b573d0257f53730d4e547c0b7fe4
+SHA1 (patch-src_graphic_text_textstream.cc) = d1a06e003bbd8e7d8f843d4877fe81d724d4a481
SHA1 (patch-xdg_CMakeLists.txt) = ce08eacbfbf9d32b6c72e411538adb0472d58851
diff --git a/widelands/patches/patch-src_graphic_text_textstream.cc b/widelands/patches/patch-src_graphic_text_textstream.cc
index f16da113c7..77d7e36a2e 100644
--- a/widelands/patches/patch-src_graphic_text_textstream.cc
+++ b/widelands/patches/patch-src_graphic_text_textstream.cc
@@ -10,13 +10,13 @@ breaks with UTF-8 chars on NetBSD.
*/
void TextStream::skip_ws() {
- while (pos_ < end_ && (isspace(text_[pos_]) != 0)) {
-+ while (pos_ < end_ && (isspace((unsigned char)text_[pos_]) != 0)) {
++ while (pos_ < end_ && (isspace(static_cast<unsigned char>(text_[pos_])) != 0)) {
consume(1);
}
}
void TextStream::rskip_ws() {
- while (pos_ < end_ && (isspace(text_[end_ - 1]) != 0)) {
-+ while (pos_ < end_ && (isspace((unsigned char)text_[end_ - 1]) != 0)) {
++ while (pos_ < end_ && (isspace(static_cast<unsigned char>(text_[end_ - 1])) != 0)) {
--end_;
}
}
Home |
Main Index |
Thread Index |
Old Index