Control: tags -1 patch >... > > make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-aarch64-linux-gnu' > > [ 9%] Generating ../mojoshader_parser_hlsl.h > > ./lemon -q -T/<<PKGBUILDDIR>>/misc/lempar.c > > /<<PKGBUILDDIR>>/mojoshader_parser_hlsl.lemon > > Segmentation fault > > make[3]: *** [CMakeFiles/mojoshader.dir/build.make:86: > > ../mojoshader_parser_hlsl.h] Error 139 >...
The attached patch fixes the segfault on architectures where char is unsigned. cu Adrian
Description: Fix FTBFS on architectures where char is unsigned Author: Adrian Bunk <b...@debian.org> Bug-Debian: https://bugs.debian.org/976553 --- mojoshader-0.0~hg1314+dfsg.orig/misc/lemon.c +++ mojoshader-0.0~hg1314+dfsg/misc/lemon.c @@ -3466,7 +3466,7 @@ void print_stack_union( int maxdtlength; /* Maximum length of any ".datatype" field. */ char *stddt; /* Standardized name for a datatype */ int i,j; /* Loop counters */ - int hash; /* For hashing the name of a type */ + unsigned int hash; /* For hashing the name of a type */ const char *name; /* Name of the parser */ /* Allocate and initialize types[] and allocate stddt[] */