pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/xtacy xtacy: Cast pointer to intptr_t, not int
details: https://anonhg.NetBSD.org/pkgsrc/rev/fd6840abf659
branches: trunk
changeset: 771936:fd6840abf659
user: nia <nia%pkgsrc.org@localhost>
date: Thu Dec 30 13:12:23 2021 +0000
description:
xtacy: Cast pointer to intptr_t, not int
diffstat:
games/xtacy/distinfo | 4 ++--
games/xtacy/patches/patch-rotate.c | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r d45dc9fbfb79 -r fd6840abf659 games/xtacy/distinfo
--- a/games/xtacy/distinfo Thu Dec 30 13:05:27 2021 +0000
+++ b/games/xtacy/distinfo Thu Dec 30 13:12:23 2021 +0000
@@ -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-lunch.c) = f1250a8c240b026c206ac73e26c2a5710f0fd905
SHA1 (patch-modes.c) = d5fb941456472898074a54c2928f0ae5e867c889
SHA1 (patch-password.c) = cdbdfc2621a7968c551f6835d8f1ea686da7c8d2
-SHA1 (patch-rotate.c) = 7cd2fa3d4530981c4cec89737a98ab55d2db435c
+SHA1 (patch-rotate.c) = 326c171375bc9afa003340fa5a0e88a54ebbb944
diff -r d45dc9fbfb79 -r fd6840abf659 games/xtacy/patches/patch-rotate.c
--- a/games/xtacy/patches/patch-rotate.c Thu Dec 30 13:05:27 2021 +0000
+++ b/games/xtacy/patches/patch-rotate.c Thu Dec 30 13:12:23 2021 +0000
@@ -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 @@
- 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