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:31:03 +0000 (23:31 +0100)
commit57106f55a5de6186af4ff78484d99528a6935be4
treef4c77f70f8fd143b23b0874590cb221a8bf2ddd3
parent05f754f6a6a2aaceef18069a6ce11aacdb86c84c
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>
(cherry picked from commit 9205ebeb8e448b2d6948b9e5d78ecf309c0ed33c)
crypto/stack/stack.c