[client.keyset] MigrationCode(uint) fixed reference (was by value)
This commit is contained in:
parent
5a5fd89b52
commit
a66cad0eeb
|
@ -196,10 +196,10 @@ func (s *T) Fetch(reader io.Reader) error {
|
|||
* @return mcode<uint8> Migration code
|
||||
*
|
||||
---------------------------------------------------------*/
|
||||
func (s T) MigrationCode(optional ...uint8) uint8 {
|
||||
func (s *T) MigrationCode(optional ...uint8) uint8 {
|
||||
|
||||
/* (1) If no valid code given -> return current one */
|
||||
if len(optional) < 1 || optional[0] > 3 {
|
||||
if len(optional) < 1 || optional[0] > 2 {
|
||||
return s.mcode
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue