Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jul 2018 09:49:55 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r475877 - head/games/species/files
Message-ID:  <201807300949.w6U9ntOp034727@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Mon Jul 30 09:49:55 2018
New Revision: 475877
URL: https://svnweb.freebsd.org/changeset/ports/475877

Log:
  games/species: Fix build on 12.0-CURRENT
  
  kingdom.cpp:149:19: error: assigning to 'bool' from incompatible type 'std::__1::fstream' (aka 'basic_fstream<char>')
          _in_experiment = fs;
                           ^~
  
  http://beefy12.nyi.freebsd.org/data/head-amd64-default/p475478_s336801/logs/errors/species-1.2d_1.log

Added:
  head/games/species/files/patch-kingdom.cpp   (contents, props changed)

Added: head/games/species/files/patch-kingdom.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/species/files/patch-kingdom.cpp	Mon Jul 30 09:49:55 2018	(r475877)
@@ -0,0 +1,15 @@
+kingdom.cpp:149:19: error: assigning to 'bool' from incompatible type 'std::__1::fstream' (aka 'basic_fstream<char>')
+        _in_experiment = fs;
+                         ^~
+
+--- kingdom.cpp.orig	2018-07-30 09:43:22 UTC
++++ kingdom.cpp
+@@ -146,7 +146,7 @@ void CKingdom::load(const bool runnable) {
+ 	}
+ 	fs.clear();
+ 	fs.open("species.dat",ios::in|ios::binary); // open data file
+-	_in_experiment = fs;
++	_in_experiment = fs.is_open();
+ 	if(!_in_experiment) { // couldn't open it?
+ 		if(verbose) {
+ 			cout << "species.dat failed; trying species.ini" << endl;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807300949.w6U9ntOp034727>