aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2013-05-06 20:52:15 +0200
committerSverker Eriksson <[email protected]>2013-05-06 21:34:56 +0200
commitc746dd9c73f19588712b4d35e3bab96036348d23 (patch)
tree6410650c9c54c1a5ffe447d007e7aea0208eea77 /erts/emulator/test
parent65aa1982ce35fb7bf55537362ca6f419447062d1 (diff)
downloadotp-c746dd9c73f19588712b4d35e3bab96036348d23.tar.gz
otp-c746dd9c73f19588712b4d35e3bab96036348d23.tar.bz2
otp-c746dd9c73f19588712b4d35e3bab96036348d23.zip
erts: Change some more 'long' to pointer sized int (ErlDrvUInt)
Diffstat (limited to 'erts/emulator/test')
-rw-r--r--erts/emulator/test/driver_SUITE_data/thr_alloc_drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/test/driver_SUITE_data/thr_alloc_drv.c b/erts/emulator/test/driver_SUITE_data/thr_alloc_drv.c
index 95a6ae9bdf..500725a7cd 100644
--- a/erts/emulator/test/driver_SUITE_data/thr_alloc_drv.c
+++ b/erts/emulator/test/driver_SUITE_data/thr_alloc_drv.c
@@ -58,7 +58,7 @@ void *
test_thread(void *vsize)
{
int i;
- int size = (int) (long) vsize;
+ int size = (int) (ErlDrvSInt) vsize;
void *mem;
mem = driver_alloc(size);
if (mem)
@@ -88,7 +88,7 @@ ErlDrvSSizeT control(ErlDrvData drv_data, unsigned int command, char *buf,
res = erl_drv_thread_create("test_thread",
&tid,
test_thread,
- (void *) (long) size,
+ (void *) (ErlDrvSInt) size,
NULL);
if (res == 0) {
res = erl_drv_thread_join(tid, NULL);