In a '{...} as foo' binding, save the original bitstring offset and
authorRichard W.M. Jones <rich@annexia.org>
Tue, 17 Jan 2012 13:02:18 +0000 (13:02 +0000)
committerRichard W.M. Jones <rich@annexia.org>
Tue, 17 Jan 2012 13:02:18 +0000 (13:02 +0000)
commit7967f0f8966db8ea22644554277a9bade43d3641
tree1baadb8b5ea2c2925ec2aaf7fdd85bf1efa2f06a
parentef7b0ec370fc78bd51e797046168bb09ea8a7f4b
In a '{...} as foo' binding, save the original bitstring offset and
length as 'foo'.  Before we were saving the running offset and length.
This commit also adds a regression test.  (Bug found by Matej Kosik).
pa_bitstring.ml
tests/test_90_bind_as.ml [new file with mode: 0644]