render: buffer: Fixed default typed buffer length calculation.
authorDavid Thompson <dthompson2@worcester.edu>
Thu, 6 Sep 2018 13:27:46 +0000 (09:27 -0400)
committerDavid Thompson <dthompson2@worcester.edu>
Thu, 6 Sep 2018 13:27:46 +0000 (09:27 -0400)
commit093e07a69add1c351ba757ec4a4dc006f81b3ac2
tree0381e859d03c93899f3d07d8fcf4a21dea791928
parent2162d706d2015b962c7a41a05670a4ea7cd6f0b8
render: buffer: Fixed default typed buffer length calculation.

* chickadee/render/buffer.scm (num-elements): New procedure.
  (make-typed-buffer): Default 'length' to the correct value in
  elements, not bytes, when a custom length is not specified.
chickadee/render/buffer.scm