fix two GCC 4.3 implicit conversion warnings