Fix truncation problem when using longlong implementation.