Skip to content

Commit 5d1ccaa

Browse files
authored
Merge pull request #6 from YujiSODE/Y20180116
Update randFreq.tcl
2 parents ef1eef8 + 5a39adb commit 5d1ccaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

randFreq.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ namespace eval ::randFreq {
160160
#rgEx is regular expression that matches real number
161161
set rgEx {^(?:[+-]?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+(?:\.[0-9]+)?)?)$|^(?:\.[0-9]+)$};
162162
set C [open $filePath r];
163-
if {[llength $encoding]<1} {fconfigure $C -encoding $encoding;};
163+
if {[llength $encoding]} {fconfigure $C -encoding $encoding;};
164164
set lines [split [read -nonewline $C] \n];
165165
close $C;
166166
foreach l $lines {

0 commit comments

Comments
 (0)