Skip to content

Commit a87b244

Browse files
authored
Merge pull request sergi#112 from eclipseo/fix_conversion_int_to_string
Convert int to string using rune()
2 parents 58c5cb1 + c38fc1a commit a87b244

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diffmatchpatch/patch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ func (dmp *DiffMatchPatch) PatchAddPadding(patches []Patch) string {
324324
paddingLength := dmp.PatchMargin
325325
nullPadding := ""
326326
for x := 1; x <= paddingLength; x++ {
327-
nullPadding += string(x)
327+
nullPadding += string(rune(x))
328328
}
329329

330330
// Bump all the patches forward.

0 commit comments

Comments
 (0)