buffer: coerce offset to integer
The offset was formerly coerced to a integer and this reimplements that.
Fixes #18208 (closed)
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
buffer