From 568de6013f3cb8ffb01438b860a7243b498f5059 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Mon, 12 Sep 2016 15:41:19 +0200 Subject: fixes #4751 --- tools/nimgrep.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/nimgrep.nim b/tools/nimgrep.nim index e93168847..a1f564fbc 100644 --- a/tools/nimgrep.nim +++ b/tools/nimgrep.nim @@ -11,7 +11,7 @@ import os, strutils, parseopt, pegs, re, terminal const - Version = "1.0" + Version = "1.1" Usage = "nimgrep - Nim Grep Utility Version " & Version & """ (c) 2012 Andreas Rumpf @@ -161,7 +161,7 @@ proc processFile(filename: string) = t = findBounds(buffer, pegp, matches, i) else: t = findBounds(buffer, rep, matches, i) - if t.first <= 0: break + if t.first < 0: break inc(line, countLines(buffer, i, t.first-1)) var wholeMatch = buffer.substr(t.first, t.last) -- cgit 1.4.1-2-gfad0 option> This repository contains the Nim compiler, Nim's stdlib, tools, and documentation. (mirror)ahoang <ahoang@tilde.institute>
summary refs log blame commit diff stats
path: root/lib/pure/mersenne.nim
blob: 2b12cce734d96b87dd5b9fc2a0228572e5c0631d (plain) (tree)