From 80efeff20a88392b13f78338f5a17605fc55e460 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 12 Jun 2013 09:06:28 -0400 Subject: [PATCH] runtime: fix build TBR=dvyukov CC=golang-dev https://golang.org/cl/10227044 --- src/pkg/runtime/traceback_x86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/runtime/traceback_x86.c b/src/pkg/runtime/traceback_x86.c index b9a6b07383c..e6e132e2536 100644 --- a/src/pkg/runtime/traceback_x86.c +++ b/src/pkg/runtime/traceback_x86.c @@ -112,7 +112,7 @@ runtime·gentraceback(uintptr pc0, uintptr sp0, uintptr lr0, G *gp, int32 skip, } // Derive location and size of local variables. - if(frame.fp == frame.sp) { + if(frame.fp == frame.sp + sizeof(uintptr)) { // Function has not created a frame for itself yet. frame.varp = nil; frame.varlen = 0;