Skip to content

Commit

Permalink
use value receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas gailly committed Apr 3, 2018
1 parent 08ad4c6 commit 2f8735e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sign/tbls/tbls.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import (
type SigShare []byte

// Index returns the index i of the TBLS share Si.
func (s *SigShare) Index() (int, error) {
func (s SigShare) Index() (int, error) {
var index uint16
buf := bytes.NewReader(*s)
buf := bytes.NewReader(s)
err := binary.Read(buf, binary.BigEndian, &index)
if err != nil {
return -1, err
Expand Down

0 comments on commit 2f8735e

Please sign in to comment.