diff options
Diffstat (limited to 'pkg/lang/vm')
| -rw-r--r-- | pkg/lang/vm/code/debug.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/lang/vm/code/debug.go b/pkg/lang/vm/code/debug.go index b96c834..ebf0ea1 100644 --- a/pkg/lang/vm/code/debug.go +++ b/pkg/lang/vm/code/debug.go @@ -19,8 +19,8 @@ func (di *DebugInfo) File() string { } func (di *DebugInfo) PCToLine(pc int) int { - line, ok := di.pcToLine.Get(pc) - if !ok { + line := di.pcToLine.Get(pc) + if line == nil { return -1 } return *line |
