You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-chemistry/ball/files/ball-1.4.1-libsvm.patch

25 lines
814 B

From 60a5f677587046b3e2077872c21b005bad549b85 Mon Sep 17 00:00:00 2001
Message-Id: <60a5f677587046b3e2077872c21b005bad549b85.1332678065.git.jlec@gentoo.org>
From: Justin Lecher <jlec@gentoo.org>
Date: Sun, 25 Mar 2012 14:15:16 +0200
Subject: [PATCH 1/2] Correct deprecated usage of svm_destroy_model to
svm_free_and_destroy_model
---
source/QSAR/libsvmModel.C | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/source/QSAR/libsvmModel.C b/source/QSAR/libsvmModel.C
index 58ce4dc..1f24e15 100644
--- a/source/QSAR/libsvmModel.C
+++ b/source/QSAR/libsvmModel.C
@@ -81,7 +81,7 @@ void LibsvmModel::train()
//free(prob);
//free(prob->y); free(prob->x);
- svm_destroy_model((::svm_model*)svm_train_result_);
+ svm_free_and_destroy_model((::svm_model**)svm_train_result_);
}
}