summary refs log tree commit diff stats
path: root/compiler/ast.nim
diff options
context:
space:
mode:
authorGrundleTrundle <gtrundle@sdf.org>2015-02-21 14:57:07 -0500
committerPatrick Kelley <Pat.Kelley@gmail.com>2015-02-21 15:18:39 -0500
commitc41e0bdbe32f1f08951aef6e746265775b1ecba8 (patch)
tree68c7f7844976c2f1d90b5c00100a8dcb1ab5cbc6 /compiler/ast.nim
parent2abf3b717abfd623c89893e14037c34b73ef99f1 (diff)
downloadNim-c41e0bdbe32f1f08951aef6e746265775b1ecba8.tar.gz
Changed nimprof.hook() to handle uninitialized t0
It's unlikely, but possible for the conversion to nanoseconds
to overflow if QueryPerformanceCounter() returns a
large enough timestamp.  This change avoids that, at the
cost of always taking a sample the first time through
when t0 == 0.
Diffstat (limited to 'compiler/ast.nim')
0 files changed, 0 insertions, 0 deletions