mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
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}; | ^~~~~~
This commit is contained in:
parent
9460946892
commit
57031cc334
1 changed files with 11 additions and 0 deletions
11
misc/lastools/files/patch-src_las2txt.cpp
Normal file
11
misc/lastools/files/patch-src_las2txt.cpp
Normal file
|
@ -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++)
|
Loading…
Add table
Reference in a new issue