pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/pinball/patches pinball: Add missing patch
details: https://anonhg.NetBSD.org/pkgsrc/rev/15e7e89cd105
branches: trunk
changeset: 447304:15e7e89cd105
user: nia <nia%pkgsrc.org@localhost>
date: Fri Feb 19 14:54:56 2021 +0000
description:
pinball: Add missing patch
diffstat:
games/pinball/patches/patch-src_Obj3dsUtil.cpp | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diffs (28 lines):
diff -r baf3f2cf8aa8 -r 15e7e89cd105 games/pinball/patches/patch-src_Obj3dsUtil.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/pinball/patches/patch-src_Obj3dsUtil.cpp Fri Feb 19 14:54:56 2021 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_Obj3dsUtil.cpp,v 1.1 2021/02/19 14:54:56 nia Exp $
+
+Don't cast FILE * to int.
+
+--- src/Obj3dsUtil.cpp.orig 2020-12-18 16:34:55.000000000 +0000
++++ src/Obj3dsUtil.cpp
+@@ -570,7 +570,7 @@ extern "C" {
+ unsigned int i=0; FILE* f=0;
+
+ f=fopen( filename, "wt");
+- if ( ! f ) return (int) f;
++ if ( ! f ) return 0;
+ for(i=0; i < in->no; i++) {
+ t = fprintObject( f, & (in->vo[i]) );
+ }
+@@ -585,7 +585,7 @@ extern "C" {
+ FILE* f=0;
+ //debugf("+saveObject %s\n",filename);
+ f=fopen( filename, "wt");
+- if ( ! f ) return (int) f;
++ if ( ! f ) return 0;
+ t = fprintObject( f, o);
+ fclose(f);
+ //debug("-saveObject");
Home |
Main Index |
Thread Index |
Old Index