Fixed a compilation issue in GCC 4.6.

Review: https://reviews.apache.org/r/29180