[client.keyset] MigrationCode(uint) fixed reference (was by value)

This commit is contained in:
xdrm-brackets 2018-04-23 18:07:32 +02:00
parent 5a5fd89b52
commit a66cad0eeb
1 changed files with 2 additions and 2 deletions

View File

@ -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
}