summary refs log tree commit diff stats
path: root/nimpretty
diff options
context:
space:
mode:
authorJuan Carlos <juancarlospaco@gmail.com>2020-03-04 06:27:52 -0300
committerGitHub <noreply@github.com>2020-03-04 10:27:52 +0100
commit0809098971080674f723cb219722487e42011fd1 (patch)
treef3447a6c7c5996d2ec82acbbbbc64a148b71fd9d /nimpretty
parent9fa070b1dc566c23b9f8c1684d33b63e9ed3b3c4 (diff)
downloadNim-0809098971080674f723cb219722487e42011fd1.tar.gz
Nimpretty Fix negative indent breaks code (#13580)
Diffstat (limited to 'nimpretty')
-rw-r--r--nimpretty/nimpretty.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/nimpretty/nimpretty.nim b/nimpretty/nimpretty.nim
index 95f428598..50d0d725f 100644
--- a/nimpretty/nimpretty.nim
+++ b/nimpretty/nimpretty.nim
@@ -44,8 +44,8 @@ proc writeVersion() =
 
 type
   PrettyOptions = object
-    indWidth: int
-    maxLineLen: int
+    indWidth: Natural
+    maxLineLen: Positive
 
 proc prettyPrint(infile, outfile: string, opt: PrettyOptions) =
   var conf = newConfigRef()