aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-10-20 12:12:21 +0200
committerDmitry Vyukov <dvyukov@google.com>2017-10-23 09:59:39 +0200
commit5044885ca2e3e8fd8a368cb497946d994d1bb1ad (patch)
tree5fd1e431a392346c33b2acef04f96a79e67b8b6b
parent54ae9c6db3587bd1db98d3c0b6d751bbbda43a60 (diff)
prog: add a TODO for hints
-rw-r--r--prog/hints.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/prog/hints.go b/prog/hints.go
index 2890c3e71..5a05d7f56 100644
--- a/prog/hints.go
+++ b/prog/hints.go
@@ -182,6 +182,8 @@ func shrinkExpand(v uint64, compMap CompMap) uint64Set {
// Replace size least significant bits of v with
// corresponding bits of newV. Leave the rest of v as it was.
replacer := (v &^ mask) | (newV & mask)
+ // TODO(dvyukov): should we try replacing with arg+/-1?
+ // This could trigger some off-by-ones.
replacers[replacer] = true
}
}