Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation fails (passing address of temporary) #3

Open
GoogleCodeExporter opened this issue Jun 10, 2015 · 0 comments
Open

Compilation fails (passing address of temporary) #3

GoogleCodeExporter opened this issue Jun 10, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant