From 45e6df2b43bea521b6aa7ca76d4fe25ed29eec08 Mon Sep 17 00:00:00 2001 From: Dagen Brock Date: Mon, 29 Apr 2019 08:53:46 -0500 Subject: [PATCH] fix incorrect min bounds check/set --- radius.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radius.rb b/radius.rb index 57a5e9c..ca8bf94 100644 --- a/radius.rb +++ b/radius.rb @@ -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