ashton-barton / alchemy-2

Automatically exported from code.google.com/p/alchemy-2
Other
0 stars 0 forks source link

Compilation fails (passing address of temporary) #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I need this patch to compile under Linux, g++ (Ubuntu/Linaro 4.7.3-1ubuntu1) 
4.7.3. Also had to chmod +x src/parser/replacefolcpp.pl and 
src/parser/replacefoly.pl.

Index: src/liftedinfer/common/src/queryupdater.cpp
===================================================================
--- src/liftedinfer/common/src/queryupdater.cpp (revision 7)
+++ src/liftedinfer/common/src/queryupdater.cpp (working copy)
@@ -508,7 +508,8 @@
        {
                if(!values[i])
                {
-                       
rbestimates->incrementValue(keys[i],&(LogDouble(0.5,false)));
+                       LogDouble tmp(0.5,false);
+                       rbestimates->incrementValue(keys[i],&tmp);
                }
                lvrAtomHashUpdateFlags->setValue(keys[i],false);
        }

Original issue reported on code.google.com by earthwi...@gentoo.org on 29 Sep 2013 at 7:38