Fixed incorrect casts.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@1388 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
David L Parkhurst 2006-10-26 14:55:32 +00:00
parent 52ab13ec09
commit f8c7968c72

View File

@ -1093,7 +1093,8 @@ void test_classes(void)
if (solution[i]->new_def == TRUE) {
std::cout << "Solution new_def " << solution[i]->n_user << std::endl;
cxxISolution sol(solution[i]);
solution[i] = (struct solution *) solution_free(solution[i]);
solution_free(solution[i]);
solution[i] = NULL;
solution[i] = sol.cxxISolution2solution();
struct solution *soln_ptr;
soln_ptr = solution[i];
@ -1102,7 +1103,8 @@ void test_classes(void)
std::cout << "Solution " << solution[i]->n_user << std::endl;
std::ostringstream oss;
cxxSolution sol(solution[i]);
solution[i] = (struct solution *) solution_free(solution[i]);
solution_free(solution[i]);
solution[i] = NULL;
sol.dump_raw(oss, 0);
//std::fstream myfile("t");