diff options
author | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-11-14 10:15:20 +0000 |
---|---|---|
committer | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-11-14 10:15:20 +0000 |
commit | d379355413307ff8b4bf28e5e50d3937594aa83b (patch) | |
tree | cd7470d6e34a291ab877d49a8c36ed2da6a670d1 /gtk/summary_dlg.c | |
parent | f0b9c3e01bc9158447bf3abe5ef25b2fe50e780c (diff) |
Added some parentheses to clarify the gint64 cast.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23447 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/summary_dlg.c')
-rw-r--r-- | gtk/summary_dlg.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/summary_dlg.c b/gtk/summary_dlg.c index e647a73761..640ae87002 100644 --- a/gtk/summary_dlg.c +++ b/gtk/summary_dlg.c @@ -310,14 +310,14 @@ summary_open_cb(GtkWidget *w _U_, gpointer d _U_) if (summary.packet_count > 0){ g_snprintf(string_buff, SUM_STR_MAX, "%.3f bytes", /* MSVC cannot convert from unsigned __int64 to float, so first convert to signed __int64 */ - (float) (gint64) summary.bytes/summary.packet_count); + (float) ((gint64) summary.bytes)/summary.packet_count); } else { strcpy(string_buff, ""); } if (summary.dfilter && summary.filtered_count > 0){ g_snprintf(string_buff2, SUM_STR_MAX, "%.3f bytes", - /* MSVC cannot convert from unsigned __int64 to float, so first convert to signed __int64 */ - (float) (gint64) summary.filtered_bytes/summary.filtered_count); + /* MSVC cannot convert from unsigned __int64 to float, so first convert to signed __int64 */ + (float) ((gint64) summary.filtered_bytes)/summary.filtered_count); } else { strcpy(string_buff2, ""); } @@ -335,13 +335,13 @@ summary_open_cb(GtkWidget *w _U_, gpointer d _U_) /* Bytes per second */ if (seconds > 0){ /* MSVC cannot convert from unsigned __int64 to float, so first convert to signed __int64 */ - g_snprintf(string_buff, SUM_STR_MAX, "%.3f", ((gint64) summary.bytes)/seconds ); + g_snprintf(string_buff, SUM_STR_MAX, "%.3f", ((gint64) summary.bytes)/seconds); } else { strcpy(string_buff, ""); } if (summary.dfilter && disp_seconds > 0){ /* MSVC cannot convert from unsigned __int64 to float, so first convert to signed __int64 */ - g_snprintf(string_buff2, SUM_STR_MAX, "%.3f", ((gint64) summary.filtered_bytes)/disp_seconds ); + g_snprintf(string_buff2, SUM_STR_MAX, "%.3f", ((gint64) summary.filtered_bytes)/disp_seconds); } else { strcpy(string_buff2, ""); } |