aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/database/sql/sql_test.go
diff options
context:
space:
mode:
authorJoel Sing <jsing@google.com>2013-03-18 12:18:49 +1100
committerJoel Sing <jsing@google.com>2013-03-18 12:18:49 +1100
commit7f50c23e2d18c445bfe790692e998ff91b37ddc2 (patch)
treebf00dc76f10aa4d6cf1853d2780c6cf7c1fe9920 /src/pkg/database/sql/sql_test.go
parentb7b4783622b4e21e7fb515b614bc651fe6210d7c (diff)
downloadgo-7f50c23e2d18c445bfe790692e998ff91b37ddc2.tar.xz
runtime: correct mmap return value checking on netbsd/openbsd
The current SysAlloc implementation suffers from a signed vs unsigned comparision bug. Since the error code from mmap is negated, the unsigned comparision of v < 4096 is always false on error. Fix this by switching to the darwin/freebsd/linux mmap model and leave the mmap return value unmodified. R=golang-dev, r CC=golang-dev https://golang.org/cl/7870044
Diffstat (limited to 'src/pkg/database/sql/sql_test.go')
0 files changed, 0 insertions, 0 deletions