aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_goodfit_alloc.c
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/beam/erl_goodfit_alloc.c
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/beam/erl_goodfit_alloc.c')
-rw-r--r--erts/emulator/beam/erl_goodfit_alloc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/erts/emulator/beam/erl_goodfit_alloc.c b/erts/emulator/beam/erl_goodfit_alloc.c
index c2088929e9..79d8b40f8c 100644
--- a/erts/emulator/beam/erl_goodfit_alloc.c
+++ b/erts/emulator/beam/erl_goodfit_alloc.c
@@ -589,16 +589,16 @@ info_options(Allctr_t *allctr,
* to erts_gfalc_test() *
\* */
-unsigned long
-erts_gfalc_test(unsigned long op, unsigned long a1, unsigned long a2)
+UWord
+erts_gfalc_test(UWord op, UWord a1, UWord a2)
{
switch (op) {
- case 0x100: return (unsigned long) BKT_IX((GFAllctr_t *) a1, (Uint) a2);
- case 0x101: return (unsigned long) BKT_MIN_SZ((GFAllctr_t *) a1, (int) a2);
- case 0x102: return (unsigned long) NO_OF_BKTS;
- case 0x103: return (unsigned long)
+ case 0x100: return (UWord) BKT_IX((GFAllctr_t *) a1, (Uint) a2);
+ case 0x101: return (UWord) BKT_MIN_SZ((GFAllctr_t *) a1, (int) a2);
+ case 0x102: return (UWord) NO_OF_BKTS;
+ case 0x103: return (UWord)
find_bucket(&((GFAllctr_t *) a1)->bucket_mask, (int) a2);
- default: ASSERT(0); return ~((unsigned long) 0);
+ default: ASSERT(0); return ~((UWord) 0);
}
}