From c29df1719ecd96f73e6128effe05427a99f9d93d Mon Sep 17 00:00:00 2001 From: Aik-Siong Koh Date: Sun, 3 Dec 2023 20:30:53 -0700 Subject: [PATCH] (int) added --- OndselSolver/ASMTAnimationParameters.cpp | 2 +- OndselSolver/ASMTPrincipalMassMarker.cpp | 2 +- OndselSolver/ASMTSimulationParameters.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OndselSolver/ASMTAnimationParameters.cpp b/OndselSolver/ASMTAnimationParameters.cpp index 7592eef..853f115 100644 --- a/OndselSolver/ASMTAnimationParameters.cpp +++ b/OndselSolver/ASMTAnimationParameters.cpp @@ -14,7 +14,7 @@ void MbD::ASMTAnimationParameters::parseASMT(std::vector& lines) { //int nframe, icurrent, istart, iend, framesPerSecond; //bool isForward; - int pos = lines[0].find_first_not_of("\t"); + int pos = (int)lines[0].find_first_not_of("\t"); auto leadingTabs = lines[0].substr(0, pos); assert(lines[0] == (leadingTabs + "nframe")); lines.erase(lines.begin()); diff --git a/OndselSolver/ASMTPrincipalMassMarker.cpp b/OndselSolver/ASMTPrincipalMassMarker.cpp index 003c4de..662a9c8 100644 --- a/OndselSolver/ASMTPrincipalMassMarker.cpp +++ b/OndselSolver/ASMTPrincipalMassMarker.cpp @@ -19,7 +19,7 @@ MbD::ASMTPrincipalMassMarker::ASMTPrincipalMassMarker() void MbD::ASMTPrincipalMassMarker::parseASMT(std::vector& lines) { - int pos = lines[0].find_first_not_of("\t"); + int pos = (int)lines[0].find_first_not_of("\t"); auto leadingTabs = lines[0].substr(0, pos); assert(lines[0] == (leadingTabs + "Name")); lines.erase(lines.begin()); diff --git a/OndselSolver/ASMTSimulationParameters.cpp b/OndselSolver/ASMTSimulationParameters.cpp index 9b4d9fa..8f10a3a 100644 --- a/OndselSolver/ASMTSimulationParameters.cpp +++ b/OndselSolver/ASMTSimulationParameters.cpp @@ -14,7 +14,7 @@ void MbD::ASMTSimulationParameters::parseASMT(std::vector& lines) { //tstart, tend, hmin, hmax, hout, errorTol; - int pos = lines[0].find_first_not_of("\t"); + int pos = (int)lines[0].find_first_not_of("\t"); auto leadingTabs = lines[0].substr(0, pos); assert(lines[0] == (leadingTabs + "tstart")); lines.erase(lines.begin());