[Kalzium] Fwd: KDE/kdeedu/kalzium/src/solver
Carsten Niehaus
cniehaus at gmx.de
Sat Feb 24 15:00:09 CET 2007
Sorry, the CCMAIL didn't work.
---------- Weitergeleitete Nachricht ----------
Subject: KDE/kdeedu/kalzium/src/solver
Date: Samstag, 24. Februar 2007 14:42
From: Carsten Niehaus <cniehaus at gmx.de>
To: kde-commits at kde.org
SVN commit 636860 by cniehaus:
After discussing things with OCaml folks it might be that this fixes
the crash on x64 machines... Not 100% sure though as I have no such
hardware to test. If you have, please open Kalzium, start the calculator
and calculate something. If Kalzium crashes this commit doesn't fix
anything...
The bug is described here: http://caml.inria.fr/mantis/view.php?id=4143
CCMAIL kalzium at kde.org tnagy1024 at gmail.com
M +3 -1 modwrap.c
--- trunk/KDE/kdeedu/kalzium/src/solver/modwrap.c #636859:636860
@@ -23,6 +23,7 @@
#include <caml/mlvalues.h>
#include <caml/callback.h>
+#include <caml/alloc.h>
char* solve_equation(const char * eq)
{
@@ -32,6 +33,7 @@
solve_equation_closure = caml_named_value("solve_equation");
}
- return strdup(String_val(callback(*solve_equation_closure, copy_string(eq))
)); + value v = copy_string(eq);
+ return strdup(String_val(callback(*solve_equation_closure, v)));
}
-------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kalzium/attachments/20070224/8f0f0778/attachment.pgp
More information about the Kalzium
mailing list