* fixes #6634 * remove more usages of unary <
This commit is contained in:
parent
b4580ad002
commit
7c03c882f5
6 changed files with 7 additions and 7 deletions
|
|
@ -261,7 +261,7 @@ proc genericHash(dest: pointer, mt: PNimType): int =
|
|||
proc dbgRegisterWatchpoint(address: pointer, name: cstring,
|
||||
typ: PNimType) {.compilerproc.} =
|
||||
let L = watchPointsLen
|
||||
for i in 0.. <L:
|
||||
for i in 0 .. pred(L):
|
||||
if watchPoints[i].name == name:
|
||||
# address may have changed:
|
||||
watchPoints[i].address = address
|
||||
|
|
@ -288,7 +288,7 @@ var
|
|||
|
||||
proc checkWatchpoints =
|
||||
let L = watchPointsLen
|
||||
for i in 0.. <L:
|
||||
for i in 0 .. pred(L):
|
||||
let newHash = genericHash(watchPoints[i].address, watchPoints[i].typ)
|
||||
if newHash != watchPoints[i].oldValue:
|
||||
dbgWatchpointHook(watchPoints[i].name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue