gcc-4.8: fixed upper-bound warning issue