Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Unified Diff: tools/slab/slab_test.go

Issue 1409173004: Remove usage of unsafe from gkvlite (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/gkvlite.git@master
Patch Set: get locks out of other lock Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/slab/slab.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/slab/slab_test.go
diff --git a/tools/slab/slab_test.go b/tools/slab/slab_test.go
index 50f3a58dcb5d522410e1287e733c0041e1309d6d..6a7b580bb9306ce43540fa787111f9e6dbb6c35c 100644
--- a/tools/slab/slab_test.go
+++ b/tools/slab/slab_test.go
@@ -149,7 +149,7 @@ func TestSlabStoreRandom(t *testing.T) {
numSets++
b := arena.Alloc(kr * kr * kr * kr)
pri := rand.Int31()
- it := scb.ItemAlloc(x, uint16(len(k)))
+ it := scb.ItemAlloc(x, uint32(len(k)))
copy(it.Key, k)
it.Val = b
it.Priority = pri
« no previous file with comments | « tools/slab/slab.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698