Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37509380
en ru br
ALT Linux repos
S:2021.10-alt2

Group :: Graphics
RPM: meshlab

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: meshlab-2016.12-arm-signed-char-fix.patch
Download


diff -up vcglib-1.0.1/vcg/complex/algorithms/create/mc_lookup_table.h.armfix vcglib-1.0.1/vcg/complex/algorithms/create/mc_lookup_table.h
--- vcglib-1.0.1/vcg/complex/algorithms/create/mc_lookup_table.h.armfix	2017-07-21 17:09:53.765149601 -0400
+++ vcglib-1.0.1/vcg/complex/algorithms/create/mc_lookup_table.h	2017-07-21 17:12:29.801132587 -0400
@@ -63,7 +63,7 @@ namespace vcg
 			//-----------------------------------------------------------------------------
             static char Cases(unsigned char cubetype, unsigned char u)
 			{
-				static const char cases[256][2] = {
+				static const signed char cases[256][2] = {
 					/*   0:                          */  {  0, -1 },
 					/*   1: 0,                       */  {  1,  0 },
 					/*   2:    1,                    */  {  1,  1 },
@@ -426,7 +426,7 @@ namespace vcg
 			//-----------------------------------------------------------------------------
             static char Test3(unsigned char config)
 			{
-				static const char test3[24] = {
+				static const signed char test3[24] = {
 					/*   5: 0,    2,                 */    5,
 					/*  33: 0,             5,        */    1,
 					/* 129: 0,                   7,  */    4,
@@ -561,7 +561,7 @@ namespace vcg
 			//-----------------------------------------------------------------------------
             static char Test4(unsigned char config)
 			{
-				static const char test4[8] = {
+				static const signed char test4[8] = {
 					/*  65: 0,                6,     */   7,
 					/* 130:    1,                7,  */   7,
 					/*  20:       2,    4,           */   7,
@@ -719,7 +719,7 @@ namespace vcg
 			//-----------------------------------------------------------------------------
             static char Test6(unsigned char config, int u)
 			{
-				static const char test6[48][3] = {
+				static const signed char test6[48][3] = {
 					/*  67: 0, 1,             6,     */  {  2,  7,  10  },
 					/* 131: 0, 1,                7,  */  {  4,  7,  11  },
 					/*  21: 0,    2,    4,           */  {  5,  7,   1  },
@@ -1002,7 +1002,7 @@ namespace vcg
 			//-----------------------------------------------------------------------------
             static char Test7(unsigned char config, int u)
 			{
-				static const char test7[16][5] = {
+				static const signed char test7[16][5] = {
 					/*  37: 0,    2,       5,        */  {  1,  2,  5,  7,   1 },
 					/* 133: 0,    2,             7,  */  {  3,  4,  5,  7,   3 },
 					/* 161: 0,             5,    7,  */  {  4,  1,  6,  7,   4 },
@@ -1877,7 +1877,7 @@ namespace vcg
 			/* 13: sub configs */
             static char Subconfig13(unsigned char config)
 			{
-				static const char subconfig13[64] = {
+				static const signed char subconfig13[64] = {
 					/*  0: 0,0,0,0,0,0 */   0,
 					/*  1: 1,0,0,0,0,0 */   1,
 					/*  2: 0,1,0,0,0,0 */   2,
@@ -2296,7 +2296,7 @@ namespace vcg
 			//-----------------------------------------------------------------------------
             static char CasesClassic(unsigned char u, unsigned char w)
 			{
-				static const char casesClassic[256][16] = {
+				static const signed char casesClassic[256][16] = {
 					/*   0:                          */  { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 },
 					/*   1: 0,                       */  {  0,  8,  3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 },
 					/*   2:    1,                    */  {  0,  1,  9, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 },
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin