On the D side, instead of writing "long", import core.stdc.config; and use c_long.
Or just use int on both sides, that should work too.
On the D side, instead of writing "long", import core.stdc.config; and use c_long.
Or just use int on both sides, that should work too.