summaryrefslogtreecommitdiff
path: root/src/nexusinterface.cpp
diff options
context:
space:
mode:
authorTanninOne <seppleviathan@gmx.de>2015-12-06 15:03:38 +0100
committerTanninOne <seppleviathan@gmx.de>2015-12-06 15:03:38 +0100
commiteca56079d5625c3ddc908d5e8fc9550ce298b1af (patch)
tree4fc3a4f2c56a41d750baab84c392eec09fe6f75f /src/nexusinterface.cpp
parente31cf3f2fd99073d22fdddfdb106a59858e14299 (diff)
parentec9c78f8fa49ce960fb708d4a140c44ed3130989 (diff)
Merge branch 'master' of https://github.com/ThosRTanner/modorganizer into ThosRTanner-master
Diffstat (limited to 'src/nexusinterface.cpp')
-rw-r--r--src/nexusinterface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nexusinterface.cpp b/src/nexusinterface.cpp
index 9bed19b3..26a74ef6 100644
--- a/src/nexusinterface.cpp
+++ b/src/nexusinterface.cpp
@@ -214,8 +214,8 @@ void NexusInterface::interpretNexusFileName(const QString &fileName, QString &mo
QString r3Highlight(fileName);
r3Highlight.insert(result.position(3) + result.length(3), "* ").insert(result.position(3), " *");
- selection.addChoice(candidate.c_str(), r3Highlight, strtol(candidate.c_str(), nullptr, 10));
- selection.addChoice(candidate2.c_str() + offset, r2Highlight, abs(strtol(candidate2.c_str() + offset, nullptr, 10)));
+ selection.addChoice(candidate.c_str(), r3Highlight, static_cast<int>(strtol(candidate.c_str(), nullptr, 10)));
+ selection.addChoice(candidate2.c_str() + offset, r2Highlight, static_cast<int>(abs(strtol(candidate2.c_str() + offset, nullptr, 10))));
if (selection.exec() == QDialog::Accepted) {
modID = selection.getChoiceData().toInt();
} else {