Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(359)

Delta Between Two Patch Sets: src/cmd/pprof/internal/profile/encode.go

Issue 152570049: [dev.power64] code review 152570049: all: merge default into dev.power64 (Closed)
Left Patch Set: diff -r 36f7fc9495481ed67a159eea0eb2fac35b7c46a5 https://code.google.com/p/go Created 10 years, 4 months ago
Right Patch Set: diff -r 36f7fc9495481ed67a159eea0eb2fac35b7c46a5 https://code.google.com/p/go Created 10 years, 4 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/cmd/pprof/internal/plugin/plugin.go ('k') | src/cmd/pprof/internal/profile/filter.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 // Copyright 2014 The Go Authors. All rights reserved. 1 // Copyright 2014 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 package profile 5 package profile
6 6
7 import ( 7 import (
8 "errors" 8 "errors"
9 "fmt" 9 "fmt"
10 "sort" 10 "sort"
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 if err != nil { 461 if err != nil {
462 return "", err 462 return "", err
463 } 463 }
464 s := int(*strng) 464 s := int(*strng)
465 if s < 0 || s >= len(strings) { 465 if s < 0 || s >= len(strings) {
466 return "", errMalformed 466 return "", errMalformed
467 } 467 }
468 *strng = 0 468 *strng = 0
469 return strings[s], nil 469 return strings[s], nil
470 } 470 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b