1
0
mirror of https://github.com/digarok/radius.git synced 2024-06-01 00:41:30 +00:00

fix incorrect min bounds check/set

This commit is contained in:
Dagen Brock 2019-04-29 08:53:46 -05:00
parent bb2769234a
commit 45e6df2b43

View File

@ -192,7 +192,7 @@ source_contents.each_line do |line|
elsif c == ';' && !in_operand
in_comment = true
# protect against "negative" spacing
spaces = 1 > (comment_col_x-x) ? 1 : (comment_col_x-x)
spaces = 0 > (comment_col_x-x) ? 0 : (comment_col_x-x)
buf << " "*spaces
x+=comment_col_x-x