fixed warnings for lack of precision when building promise for 64-bit.