Merge pull request #2194 from GrundleTrundle/windows_timer_sub

Fix for timer overflow when using nimprofiler with 32bit Windows target.
This commit is contained in:
Andreas Rumpf 2015-02-22 21:24:23 +01:00
commit 890dcabbde
2 changed files with 3 additions and 3 deletions

View file

@ -132,7 +132,7 @@ else:
proc hook(st: TStackTrace) {.nimcall.} =
if interval == 0:
hookAux(st, 1)
elif getTicks() - t0 > interval:
elif int64(t0) == 0 or getTicks() - t0 > interval:
hookAux(st, 1)
t0 = getTicks()