--- libgig/trunk/src/gig.cpp 2021/06/19 10:58:51 3960 +++ libgig/trunk/src/gig.cpp 2021/06/19 11:01:40 3961 @@ -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);