freebsd-ports/math/gambit/files/patch-src_tools_logit_logbehav.imp
Yuri Victorovich 54f50c5207 math/gambit: Unbroke the port.
Port changes:
* Added the patch to avoid permissions problem.
  Reported it upstream: https://github.com/gambitproject/gambit/issues/229
* Took maintainership.
* Removed USE_LDCONFIG (not needed).

Approved by:	tcberner (mentor, implicit)
2018-02-25 23:43:34 +00:00

11 lines
555 B
Text

--- src/tools/logit/logbehav.imp.orig 2018-02-25 23:16:35 UTC
+++ src/tools/logit/logbehav.imp
@@ -269,7 +269,7 @@ void LogBehavProfile<T>::GetPayoff(GameT
}
if (node->children.Length()) {
- int pl = node->infoset->m_player->m_number, iset = node->infoset->m_number;
+ int pl = node->infoset->m_player->GetNumber(), iset = node->infoset->GetNumber(); // fixes the build problem, see https://github.com/gambitproject/gambit/issues/229
if (pl == 0) {
// chance player
for (int act = 1; act <= node->NumChildren(); act++) {