aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/runtime.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2013-07-29 16:42:07 -0400
committerRuss Cox <rsc@golang.org>2013-07-29 16:42:07 -0400
commitc7d5c438a2bd6bad779cc535d11466bb93cc08e3 (patch)
treef9dd0bcd081a55ac5bc4af6acda6bd19154be8a0 /src/pkg/runtime/runtime.c
parent98cc58e2c71284c1f56cf27758091f6f1d7992bf (diff)
downloadgo-c7d5c438a2bd6bad779cc535d11466bb93cc08e3.tar.xz
runtime: adjust timediv to avoid _vasop; mark _subv okay
R=dvyukov CC=golang-dev https://golang.org/cl/12028046
Diffstat (limited to 'src/pkg/runtime/runtime.c')
-rw-r--r--src/pkg/runtime/runtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/runtime.c b/src/pkg/runtime/runtime.c
index 03a9daf4c2..5bca6f87b4 100644
--- a/src/pkg/runtime/runtime.c
+++ b/src/pkg/runtime/runtime.c
@@ -429,7 +429,7 @@ runtime·timediv(int64 v, int32 div, int32 *rem)
res = 0;
for(bit = 0x40000000; bit != 0; bit >>= 1) {
if(v >= (int64)bit*div) {
- v -= (int64)bit*div;
+ v = v - (int64)bit*div;
res += bit;
}
}