Convert num_alloc to a size_t in stack.c and tweak style
authorMatt Caswell <matt@openssl.org>
Thu, 8 Sep 2016 10:06:29 +0000 (11:06 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 19 Sep 2016 22:25:52 +0000 (23:25 +0100)
commit9205ebeb8e448b2d6948b9e5d78ecf309c0ed33c
treeba6296e8e17e7d7265f8ca42d358e3b5d731d349
parent9731a9ce7d0f404d21ed418f9bc983b174e130cb
Convert num_alloc to a size_t in stack.c and tweak style

We were casting num_alloc to size_t in lots of places, or just using it in
a context where size_t makes more sense - so convert it. This simplifies
the code a bit.

Also tweak the style in stack.c a bit following on from the previous
commit

Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/stack/stack.c