提交 d360dae7 编写于 作者: A Alessandro Arzilli 提交者: Derek Parker

proc: fix build on go1.6 (#800)

Fixes #799
上级 43f26fb4
......@@ -437,14 +437,14 @@ func readNote(r io.ReadSeeker) (*Note, error) {
// skipPadding moves r to the next multiple of pad.
func skipPadding(r io.ReadSeeker, pad int64) error {
pos, err := r.Seek(0, io.SeekCurrent)
pos, err := r.Seek(0, os.SEEK_CUR)
if err != nil {
return err
}
if pos%pad == 0 {
return nil
}
if _, err := r.Seek(pad-(pos%pad), io.SeekCurrent); err != nil {
if _, err := r.Seek(pad-(pos%pad), os.SEEK_CUR); err != nil {
return err
}
return nil
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册