From: Shenghou Ma Date: Fri, 21 Sep 2012 19:54:29 +0000 (+1000) Subject: [release-branch.go1] runtime: remove unnecessary ROUND in alg.c X-Git-Tag: go1.0.3~108 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c469cb7c5d27967036c76add18bc69cacfaa6205;p=gostls13.git [release-branch.go1] runtime: remove unnecessary ROUND in alg.c ««« 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 »»» --- diff --git a/src/pkg/runtime/alg.c b/src/pkg/runtime/alg.c index bc848da38c..b43e32a142 100644 --- a/src/pkg/runtime/alg.c +++ b/src/pkg/runtime/alg.c @@ -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);