Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37766215
en ru br
ALT Linux repositórios
S:1.8.5-alt4
5.0: 1.8.5-alt1
4.1: 1.8.4-alt7
4.0: 1.8.4-alt7
3.0: 1.8.4-alt2

Group :: Desenvolvimento/C++
RPM: plib

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: plib-1.8.4-type.diff
Download


--- src/ssg/ssgLoadFLT.cxx
+++ src/ssg/ssgLoadFLT.cxx
@@ -1274,7 +1274,7 @@
             triflg = 0;
          }
          else {
-            int index;
+            long index;
 	    struct snode *t;
 	    int tex_alpha = 0;
 
@@ -1886,7 +1886,7 @@
    stack[1] = PostClean(stack[1], attr[1]);
    
    if (stack[1] && instance >= 0) {
-       state->refs = sinsert(state->refs, (void *)instance, 0, ptrcmp);
+       state->refs = sinsert(state->refs, (void *)(long)instance, 0, ptrcmp);
        if (state->refs->data != (void *)-1) {
 	   ulSetError(UL_WARNING, "[flt] Instance %d redefined.", instance);
 	   ssgDeRefDelete((ssgEntity *) state->refs->data);
@@ -2045,7 +2045,8 @@
    ssgEntity *stack[MAXDEPTH + 1];
    fltNodeAttr *attr[MAXDEPTH + 1];
    int instance[MAXDEPTH + 1];
-   int sp, op, len, k;
+   int sp, op, len;
+   long k;
 
    stack[0] = new ssgBranch;
    stack[0]->setName("reserved");
@@ -2426,7 +2427,8 @@
 static int TableChunks(ubyte *ptr0, ubyte *end, fltState *state)
 {
    ubyte *ptr = ptr0;
-   int op, len, index, done = 0;
+   int op, len, done = 0;
+   long index;
 
    while (!done) {
       
@@ -2505,7 +2507,7 @@
             int i, j, n = (len - 4) / 184;
             for (i = 0; i < n; ++i) {
 	       float *mtl;
-	       state->mtls = sinsert(state->mtls, (void *)i, 0, ptrcmp);
+	       state->mtls = sinsert(state->mtls, (void *)(long)i, 0, ptrcmp);
 	       //state->mtls->data = malloc(sizeof(float)*14);
 	       state->mtls->data = new float[14];
 	       mtl = (float *)state->mtls->data;
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009