test/buffer.h: move range checking to compiler
authorJohann <johannkoenig@google.com>
Wed, 5 Jul 2017 18:14:51 +0000 (11:14 -0700)
committerJohann <johannkoenig@google.com>
Wed, 5 Jul 2017 18:21:18 +0000 (11:21 -0700)
commitda2ad47d665bc496633a3322d19c5befc42b5553
tree0f63eb8ac68f3c817240050c496109c9e87cdd0c
parent7d526c1654ed972e4083c89f17fbb8f92782dfb0
test/buffer.h: move range checking to compiler

Pass low/high values as type T. Out of range values should be caught by
static analysis instead.

Change-Id: I0a3ee8820af05f4c791ab097626174e2206fa6d5
test/buffer.h