]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1] runtime: remove unnecessary ROUND in alg.c
authorShenghou Ma <minux.ma@gmail.com>
Fri, 21 Sep 2012 19:54:29 +0000 (05:54 +1000)
committerShenghou Ma <minux.ma@gmail.com>
Fri, 21 Sep 2012 19:54:29 +0000 (05:54 +1000)
««« backport 4bd268b3c88a
runtime: remove unnecessary ROUND in alg.c
        Introduced in CL 6452046.

R=golang-dev, nigeltao, dave
CC=golang-dev
https://golang.org/cl/6459051

»»»

src/pkg/runtime/alg.c

index bc848da38cd109345f2cf92120ec496e2f664ec2..b43e32a142e24dbdeba48fe14470d99b67a54c8e 100644 (file)
@@ -472,7 +472,7 @@ runtime·equal(Type *t, ...)
        uintptr ret;
        
        x = (byte*)(&t+1);
-       y = x + ROUND(t->size, t->align);
+       y = x + t->size;
        ret = (uintptr)(y + t->size);
        ret = ROUND(ret, Structrnd);
        t->alg->equal((bool*)ret, t->size, x, y);