From f7245c062668199fcb505de47d694ceaed512394 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 22 Jan 2014 16:39:39 -0500 Subject: [PATCH] runtime: fix typo in ARM code The typo was introduced by one of Dmitriy's CLs this morning. The fix makes the ARM build compile again; it still won't pass its tests, but one thing at a time. TBR=dvyukov CC=golang-codereviews https://golang.org/cl/55770044 --- src/pkg/runtime/atomic_arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/runtime/atomic_arm.c b/src/pkg/runtime/atomic_arm.c index 87e88d7563..d914475c7f 100644 --- a/src/pkg/runtime/atomic_arm.c +++ b/src/pkg/runtime/atomic_arm.c @@ -49,7 +49,7 @@ runtime·xchgp(void* volatile* addr, void* v) for(;;) { old = *addr; - if(runtime·cas(addr, old, v)) + if(runtime·casp(addr, old, v)) return old; } } -- 2.48.1