diff options
author | Balint Reczey <balint@balintreczey.hu> | 2014-07-01 12:29:38 +0200 |
---|---|---|
committer | Balint Reczey <balint@balintreczey.hu> | 2014-07-01 10:33:36 +0000 |
commit | 147db828d5ccff1694727f79398123759284de20 (patch) | |
tree | 3dc355d121b251eca91a2127773de76f2ddc20f2 /ui | |
parent | 0cf54e78275f3e75cc3c40457299d826d9eb5384 (diff) |
Log2() and exp2() are missing on Windows
Change-Id: I8a970f9030fafd8fdcb4e2a24620033ec8005da7
Reviewed-on: https://code.wireshark.org/review/2744
Reviewed-by: Balint Reczey <balint@balintreczey.hu>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gtk/io_stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk/io_stat.c b/ui/gtk/io_stat.c index 646c276c85..9a402d5d46 100644 --- a/ui/gtk/io_stat.c +++ b/ui/gtk/io_stat.c @@ -272,7 +272,7 @@ tap_iostat_packet(void *g, packet_info *pinfo, epan_dissect_t *edt, const void * /* reallocate graphs */ static const gsize exp_inc_limit = 1000000; static const gsize step = 100000; - const gsize new_size = (gsize)((idx < exp_inc_limit)?exp2(log2(idx + 1) + 1):(idx + step)); + const gsize new_size = (gsize)((idx < exp_inc_limit)?pow(2.0, log(idx + 1)/log(2.0) + 1):(idx + step)); if (io->space_items == 0) { /* nothing allocated yet */ int i; |