pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/freeglut Fixed typecast around lvalue.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1949ecd00652
branches:  trunk
changeset: 534007:1949ecd00652
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed Oct 10 22:22:14 2007 +0000

description:
Fixed typecast around lvalue.

diffstat:

 graphics/freeglut/distinfo         |   3 ++-
 graphics/freeglut/patches/patch-ab |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r e123062cdfbb -r 1949ecd00652 graphics/freeglut/distinfo
--- a/graphics/freeglut/distinfo        Wed Oct 10 22:17:32 2007 +0000
+++ b/graphics/freeglut/distinfo        Wed Oct 10 22:22:14 2007 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2006/10/14 01:17:47 rillig Exp $
+$NetBSD: distinfo,v 1.4 2007/10/10 22:22:14 rillig Exp $
 
 SHA1 (freeglut-2.2.0.tar.gz) = 87c762bd9653fe844f67e1944f1397061b590dc8
 RMD160 (freeglut-2.2.0.tar.gz) = 854de841d634074aac0df1cd62c8ca236570419a
 Size (freeglut-2.2.0.tar.gz) = 384055 bytes
 SHA1 (patch-aa) = 94fbd8965fa42db9c6c57c2b4089c764f9e7bcc0
+SHA1 (patch-ab) = ec636c3684a2d64c1a7c47e1ff95651ce0061b30
diff -r e123062cdfbb -r 1949ecd00652 graphics/freeglut/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/freeglut/patches/patch-ab        Wed Oct 10 22:22:14 2007 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1 2007/10/10 22:22:14 rillig Exp $
+
+lvalues are more complicated than rvalues.
+
+--- src/freeglut_internal.h.orig       2003-12-11 18:02:13.000000000 +0100
++++ src/freeglut_internal.h    2007-10-11 00:20:38.000000000 +0200
+@@ -384,7 +384,7 @@ struct tagSFG_WindowState
+  * type.
+  */
+ #define FETCH_WCB(window,cbname) \
+-    ((FGCB ## cbname)((window).CallBacks[CB_ ## cbname]))
++    (*((FGCB ## cbname *)&((window).CallBacks[CB_ ## cbname])))
+ 
+ /*
+  * INVOKE_WCB() is used as:



Home | Main Index | Thread Index | Old Index