summaryrefslogtreecommitdiff
path: root/src/benchmarks/eina/ecore_sheap.c
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2019-03-27 10:59:31 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-03-27 11:00:28 -0400
commit79e809d94505708b224bb4a63a1a92b2e7abba4d (patch)
tree4aed32fe306dc8d9c1e82e3dd18cd3f5fbd9badc /src/benchmarks/eina/ecore_sheap.c
parent0f29560aa2214f1fb28a601212242c58524f85a3 (diff)
eina benchmark: fix warnings on Windows 64 bits
Summary: long is always a 32 bits type on Windows Test Plan: compilation Reviewers: raster, zmike, cedric Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8482
Diffstat (limited to '')
-rw-r--r--src/benchmarks/eina/ecore_sheap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/benchmarks/eina/ecore_sheap.c b/src/benchmarks/eina/ecore_sheap.c
index 448be97918..e86c10b510 100644
--- a/src/benchmarks/eina/ecore_sheap.c
+++ b/src/benchmarks/eina/ecore_sheap.c
@@ -4,6 +4,7 @@
4 4
5#include <stdlib.h> 5#include <stdlib.h>
6#include <string.h> 6#include <string.h>
7#include <stdint.h>
7 8
8#include "Ecore_Data.h" 9#include "Ecore_Data.h"
9 10
@@ -452,10 +453,10 @@ _ecore_sheap_update_data(Ecore_Sheap *heap)
452int 453int
453ecore_direct_compare(const void *key1, const void *key2) 454ecore_direct_compare(const void *key1, const void *key2)
454{ 455{
455 unsigned long k1, k2; 456 uintptr_t k1, k2;
456 457
457 k1 = (unsigned long)key1; 458 k1 = (uintptr_t)key1;
458 k2 = (unsigned long)key2; 459 k2 = (uintptr_t)key2;
459 460
460 if (k1 > k2) 461 if (k1 > k2)
461 return 1; 462 return 1;