MB-11438: Cast float to int for buffer size

Change-Id: I302c36847583a52017087a2afb275a4a0bf4f63e
Reviewed-on: http://review.couchbase.org/38366
Reviewed-by: Bin Cui <bin.cui@gmail.com>
Tested-by: Bin Cui <bin.cui@gmail.com>