]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix typo in ARM code
authorRuss Cox <rsc@golang.org>
Wed, 22 Jan 2014 21:39:39 +0000 (16:39 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 22 Jan 2014 21:39:39 +0000 (16:39 -0500)
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

index 87e88d75630e8587431291bd205b8c44cef639a9..d914475c7f40424148dcaebca92a54e011dea121 100644 (file)
@@ -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;
        }
 }