GNOME Bugzilla – Bug 788385
gtestutils: Explicitly cast args to g_assertion_message_cmpnum()
Last modified: 2017-10-02 14:33:14 UTC
Trivial patch attached.
Created attachment 360711 [details] [review] gtestutils: Explicitly cast args to g_assertion_message_cmpnum() This avoids warnings when compiling with -Wconversion on 32-bit architectures, as the conversion to (long double) is not necessarily lossless. We don’t care about that, though, since the actual comparison was done with the correct types, and g_assertion_message_cmpnum() is only used to print failure information. Signed-off-by: Philip Withnall <withnall@endlessm.com>
Review of attachment 360711 [details] [review]: ok
Attachment 360711 [details] pushed as 702b6af - gtestutils: Explicitly cast args to g_assertion_message_cmpnum()