On 10/13/2015 04:59 PM, Hieu Hoang wrote:
> you're quite right, i've added a check
>   
> https://github.com/moses-smt/mosesdecoder/commit/982d52e5b657f4c1fa7369e577cfd75a8af16543
> However, that the the problem I'm having on OSX. It opens but it crashes
> on loading.
> 
> I suspect one of the datatypes has slightly different size on clang/OSX
> compared to gcc/Linux

Before the loading gets to this point, CanonicalHuffman.Load() does
something that intrigues me, as a reader who doesn't really grok the
code: it fread()s an array of Data.

If Data is the class I find in mert/Data.h, then AFAICT the compiler
would be well within its rights to break this.  Not only is it not a
POD, it contains pointers, including in strings and vectors.  You
wouldn't expect that to work.  Did I take a wrong turn somewhere?


Jeroen
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to