Skip to content

Commit

Permalink
fix: strconv.v_sprintf is now [unsafe]; fix usage in src/nl/nl.v
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Jul 10, 2023
1 parent d5fff41 commit 20eebb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nl/nl.v
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ fn nl(settings Settings, streams []os.File) {
if skip {
prefix = skip_prefix
} else {
prefix = strconv.v_sprintf(f_lno, lineno)
prefix = unsafe { strconv.v_sprintf(f_lno, lineno) }

//// Compile options, default is GNU-compatible behavior ////
// In BSD, the upper digits are truncated in case of overflow.
Expand Down

0 comments on commit 20eebb9

Please sign in to comment.