fix build

This commit is contained in:
Yasuhiro Matsumoto
2017-03-20 23:31:22 +09:00
parent cf4bd560f1
commit 997cab8094
3 changed files with 7 additions and 7 deletions

View File

@@ -48,7 +48,7 @@ func (b *SQLiteBackup) Step(p int) (bool, error) {
if ret == C.SQLITE_DONE {
return true, nil
} else if ret != 0 && ret != C.SQLITE_LOCKED && ret != C.SQLITE_BUSY {
return false, Error{Code: ErrNo(ret)}
return false, &Error{Code: ErrNo(ret)}
}
return false, nil
}
@@ -79,7 +79,7 @@ func (b *SQLiteBackup) Close() error {
runtime.SetFinalizer(b, nil)
if ret != 0 {
return Error{Code: ErrNo(ret)}
return &Error{Code: ErrNo(ret)}
}
return nil
}