diff options
author | Casey Marshall <cmars@cmarstech.com> | 2014-07-13 03:14:27 -0500 |
---|---|---|
committer | Casey Marshall <cmars@cmarstech.com> | 2014-07-13 03:14:27 -0500 |
commit | 14094735473a6af330c3315a1aa497d42731cf5b (patch) | |
tree | eccc4d38e1734cf9e8e7e488939a907da81e2611 | |
parent | Remove unreachable test code. (diff) | |
download | dedo-14094735473a6af330c3315a1aa497d42731cf5b.tar.gz dedo-14094735473a6af330c3315a1aa497d42731cf5b.tar.xz |
Fixed cast for 32-bit windows.
-rw-r--r-- | bolt_windows.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bolt_windows.go b/bolt_windows.go index fc77968..6b6e419 100644 --- a/bolt_windows.go +++ b/bolt_windows.go @@ -35,7 +35,7 @@ func mmap(db *DB, sz int) error { // Open a file mapping handle. sizelo := uint32(sz >> 32) - sizehi := uint32(sz & 0xffffffff) + sizehi := uint32(sz) & 0xffffffff h, errno := syscall.CreateFileMapping(syscall.Handle(db.file.Fd()), nil, syscall.PAGE_READONLY, sizelo, sizehi, nil) if h == 0 { return os.NewSyscallError("CreateFileMapping", errno) |