make nim bootstrap again for older versions

This commit is contained in:
Andreas Rumpf 2016-07-30 00:50:38 +02:00
commit a8edf67a28
6 changed files with 14 additions and 6 deletions

View file

@ -79,7 +79,7 @@ template addImpl(enlarge) {.dirty.} =
rawInsert(t, t.data, key, val, hc, j)
inc(t.counter)
template maybeRehashPutImpl(enlarge) {.dirty.} =
template maybeRehashPutImpl(enlarge) {.oldimmediate, dirty.} =
if mustRehash(t.dataLen, t.counter):
enlarge(t)
index = rawGetKnownHC(t, key, hc)
@ -87,7 +87,7 @@ template maybeRehashPutImpl(enlarge) {.dirty.} =
rawInsert(t, t.data, key, val, hc, index)
inc(t.counter)
template putImpl(enlarge) {.dirty.} =
template putImpl(enlarge) {.oldimmediate, dirty.} =
var hc: Hash
var index = rawGet(t, key, hc)
if index >= 0: t.data[index].val = val