[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Another bug in ARAnyM?



Hi!

While playing with Erlang m68k build in ARAnyM and debugging Erlang
shell crash I've found code similar to the following:

----- File1----------
#include <stdio.h>

void *f();

main() {
        void *a;
        a = f();
        printf("%d\n", (long)a);
}
-------File2-----------
#include <stdio.h>

long f();

long f() {
        long a = 84;
        printf("%d\n", a);
        return a;
}
------------------------
The code uses implicit conversion from long to a pointer
(the test is available at http://sgolovan.nes.ru/tmp/test.tar.gz).

In ARAnym the test gives
84
-1072577264

while on all other machines (non-m68k though) it gives
84
84

Is this a bug in ARAnyM or it is a difference between m68k and other
architectures?

Cheers!
-- 
Sergei Golovan


Reply to: