--- libgig/trunk/src/gig.cpp 2021/06/19 10:41:02 3956 +++ libgig/trunk/src/gig.cpp 2021/06/19 11:05:00 3962 @@ -5696,7 +5696,7 @@ * @param bBypass - if true, the script slot will be skipped by the sampler * @see Script::Bypass */ - void Instrument::SetScriptSlotBypassed(uint index, bool bBypass) { + void Instrument::SetScriptSlotBypassed(size_t index, bool bBypass) { if (index >= ScriptSlotCount()) return; if (pScriptRefs) pScriptRefs->at(index).bypass = bBypass; @@ -5742,7 +5742,7 @@ * @param slot - script slot index of the variable to be retrieved * @param variable - name of the 'patch' variable in that script */ - bool Instrument::IsScriptPatchVariableSet(int slot, String variable) { + bool Instrument::IsScriptPatchVariableSet(size_t slot, String variable) { if (variable.empty()) return false; Script* script = GetScriptOfSlot(slot); if (!script) return false; @@ -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); @@ -5876,7 +5876,7 @@ * @param slot - script slot index of the variable to be unset * @param variable - name of the 'patch' variable in that script */ - void Instrument::UnsetScriptPatchVariable(int slot, String variable) { + void Instrument::UnsetScriptPatchVariable(ssize_t slot, String variable) { Script* script = GetScriptOfSlot(slot); // option 1: unset a particular variable of one particular script slot