diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2025-01-19 16:12:33 +0100 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2025-01-22 12:25:20 +0100 |
commit | 57031cc334c9c6c374024d066ec9029fc49758ac (patch) | |
tree | 1859fb7d4373c92573d9d2dd4c3579e733f8cefb /misc/lastools/files/patch-src_las2txt.cpp | |
parent | devel/ocaml-ppx-tools: fix build on powerpc (diff) |
misc/lastools: fix build on ARM / POWER
/wrkdirs/usr/ports/misc/lastools/work/LAStools-2.0.3/src/las2txt.cpp:573:37: error: constant expression evaluates to -3 which cannot be narrowed to type 'char' [-Wc++11-narrowing]
573 | const char replacement_codes[] = {HSV255, HSL255, HSV, HSL};
| ^~~~~~
Diffstat (limited to 'misc/lastools/files/patch-src_las2txt.cpp')
-rw-r--r-- | misc/lastools/files/patch-src_las2txt.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/misc/lastools/files/patch-src_las2txt.cpp b/misc/lastools/files/patch-src_las2txt.cpp new file mode 100644 index 000000000000..e72050fae2ce --- /dev/null +++ b/misc/lastools/files/patch-src_las2txt.cpp @@ -0,0 +1,11 @@ +--- src/las2txt.cpp.orig 2025-01-19 14:35:25 UTC ++++ src/las2txt.cpp +@@ -570,7 +570,7 @@ static void parse_extended_flags(char *parse_string) + static void parse_extended_flags(char *parse_string) + { + const char *extended_flags[] = {"(HSV)", "(HSL)", "(hsv)", "(hsl)"}; +- const char replacement_codes[] = {HSV255, HSL255, HSV, HSL}; ++ const signed char replacement_codes[] = {HSV255, HSL255, HSV, HSL}; + I32 nflags = (I32)(sizeof(extended_flags) / sizeof(char*)); + + for (I32 i = 0; i < nflags; i++) |