pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/games/xtacy



Module Name:    pkgsrc
Committed By:   nia
Date:           Thu Dec 30 13:12:24 UTC 2021

Modified Files:
        pkgsrc/games/xtacy: distinfo
        pkgsrc/games/xtacy/patches: patch-rotate.c

Log Message:
xtacy: Cast pointer to intptr_t, not int


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/games/xtacy/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/games/xtacy/patches/patch-rotate.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/games/xtacy/distinfo
diff -u pkgsrc/games/xtacy/distinfo:1.1 pkgsrc/games/xtacy/distinfo:1.2
--- pkgsrc/games/xtacy/distinfo:1.1     Thu Dec 30 00:43:35 2021
+++ pkgsrc/games/xtacy/distinfo Thu Dec 30 13:12:23 2021
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1 2021/12/30 00:43:35 nia Exp $
+$NetBSD: distinfo,v 1.2 2021/12/30 13:12:23 nia Exp $
 
 BLAKE2s (xtacy114.tar.gz) = 1cd914aa0e9076938ca5f465bfa12ccfb33040f219f9eebf649b14020efe7c3d
 SHA512 (xtacy114.tar.gz) = 72bcdc51ded08ed876bdb005300e92621893410ea1d8bc30eec40e18a0d0b4c2e3dacb4dffd0f6620181d50016f52b00007250b2dfa93b4c1c7ea216acda356a
@@ -8,4 +8,4 @@ SHA1 (patch-color.c) = 5884916d32486abb8
 SHA1 (patch-lunch.c) = f1250a8c240b026c206ac73e26c2a5710f0fd905
 SHA1 (patch-modes.c) = d5fb941456472898074a54c2928f0ae5e867c889
 SHA1 (patch-password.c) = cdbdfc2621a7968c551f6835d8f1ea686da7c8d2
-SHA1 (patch-rotate.c) = 7cd2fa3d4530981c4cec89737a98ab55d2db435c
+SHA1 (patch-rotate.c) = 326c171375bc9afa003340fa5a0e88a54ebbb944

Index: pkgsrc/games/xtacy/patches/patch-rotate.c
diff -u pkgsrc/games/xtacy/patches/patch-rotate.c:1.1 pkgsrc/games/xtacy/patches/patch-rotate.c:1.2
--- pkgsrc/games/xtacy/patches/patch-rotate.c:1.1       Thu Dec 30 00:43:35 2021
+++ pkgsrc/games/xtacy/patches/patch-rotate.c   Thu Dec 30 13:12:24 2021
@@ -1,4 +1,4 @@
-$NetBSD: patch-rotate.c,v 1.1 2021/12/30 00:43:35 nia Exp $
+$NetBSD: patch-rotate.c,v 1.2 2021/12/30 13:12:24 nia Exp $
 
 Don't cast pointer to int, it no longer even works under Linux/GCC
 because this isn't 1995 and 64-bit platforms exist.
@@ -12,8 +12,8 @@ because this isn't 1995 and 64-bit platf
 -      int base=(int)&(source->vertices[0]);
 -      int facenum =(int) (source->faces[i]);
 -      int sidenum= (facenum-base)/(sizeof(vertex_type));
-+      intptr_t base=(int)&(source->vertices[0]);
-+      intptr_t facenum =(int) (source->faces[i]);
++      intptr_t base=(intptr_t)&(source->vertices[0]);
++      intptr_t facenum =(intptr_t) (source->faces[i]);
 +      intptr_t sidenum= (facenum-base)/(sizeof(vertex_type));
        temp.faces[i]= &temp.vertices[sidenum];
      }



Home | Main Index | Thread Index | Old Index