diff options
author | nia <nia@pkgsrc.org> | 2021-02-19 14:54:56 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2021-02-19 14:54:56 +0000 |
commit | b0f12d437fb97ae06a484b2308c1cdcc0fa6c112 (patch) | |
tree | be952f4564f204982f0da0c8a04bf67e90bdae45 /games | |
parent | 2f7e3bd54e4f2d032ad94fb12c54a1b4aefbb7b2 (diff) | |
download | pkgsrc-b0f12d437fb97ae06a484b2308c1cdcc0fa6c112.tar.gz |
pinball: Add missing patch
Diffstat (limited to 'games')
-rw-r--r-- | games/pinball/patches/patch-src_Obj3dsUtil.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/games/pinball/patches/patch-src_Obj3dsUtil.cpp b/games/pinball/patches/patch-src_Obj3dsUtil.cpp new file mode 100644 index 00000000000..660aa0e27dd --- /dev/null +++ b/games/pinball/patches/patch-src_Obj3dsUtil.cpp @@ -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"); |