--- libgig/trunk/src/gig.cpp 2021/06/19 10:48:12 3958 +++ libgig/trunk/src/gig.cpp 2021/06/19 11:01:40 3961 @@ -5776,7 +5776,7 @@ * * @param slot - script slot index of the variable to be retrieved */ - std::map Instrument::GetScriptPatchVariables(int slot) { + std::map Instrument::GetScriptPatchVariables(size_t slot) { Script* script = GetScriptOfSlot(slot); if (!script) return std::map(); const _UUID uuid = _UUIDFromCArray(&script->Uuid[0]); @@ -5808,7 +5808,7 @@ * @param slot - script slot index of the variable to be retrieved * @param variable - name of the 'patch' variable in that script */ - String Instrument::GetScriptPatchVariable(int slot, String variable) { + String Instrument::GetScriptPatchVariable(size_t slot, String variable) { std::map vars = GetScriptPatchVariables(slot); return (vars.count(variable)) ? vars.find(variable)->second : ""; } @@ -5835,7 +5835,7 @@ * @throws gig::Exception if given script @p slot index is invalid or given * @p variable name is empty */ - void Instrument::SetScriptPatchVariable(int slot, String variable, String value) { + void Instrument::SetScriptPatchVariable(size_t slot, String variable, String value) { if (variable.empty()) throw Exception("Variable name must not be empty"); Script* script = GetScriptOfSlot(slot);