diff options
author | Sverker Eriksson <[email protected]> | 2013-05-06 20:52:15 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2013-05-06 21:34:56 +0200 |
commit | c746dd9c73f19588712b4d35e3bab96036348d23 (patch) | |
tree | 6410650c9c54c1a5ffe447d007e7aea0208eea77 /erts/emulator/test/driver_SUITE_data | |
parent | 65aa1982ce35fb7bf55537362ca6f419447062d1 (diff) | |
download | otp-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/driver_SUITE_data')
-rw-r--r-- | erts/emulator/test/driver_SUITE_data/thr_alloc_drv.c | 4 |
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); |