Skip to content

Commit

Permalink
Fix generated code on Windows having backslashes in paths in comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyl9393 committed Apr 14, 2019
1 parent cdf14b6 commit 4734b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mgl32/codegen.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func genMgl64(destPath string) {

comment := fmt.Sprintf(
"// This file is generated from mgl32/%s; DO NOT EDIT\n\n",
source)
filepath.ToSlash(source))
if _, err = out.WriteString(comment); err != nil {
return err
}
Expand Down

0 comments on commit 4734b0f

Please sign in to comment.