Given that you have two implementations on different platforms and only one works, I suggest you set up a standard test case and add trace output to both implementations so that you can see at what point their behaviour diverges.
Given that you have two implementations on different platforms and only one works, I suggest you set up a standard test case and add trace output to both implementations so that you can see at what point their behaviour diverges.