Skip to content

Instantly share code, notes, and snippets.

View mamorlis's full-sized avatar

Mamoru Komachi mamorlis

  • Tokyo Metropolitan University
  • Tokyo
View GitHub Profile
@mamorlis
mamorlis / lwlm-0.1-clang.patch
Created December 3, 2016 02:33
lwlm-0.1 does not compile on Mac 10.12 with clang.
diff -urN lwlm-0.1.orig/hpylm.cpp lwlm-0.1/hpylm.cpp
--- lwlm-0.1.orig/hpylm.cpp 2010-03-18 01:41:57.000000000 +0900
+++ lwlm-0.1/hpylm.cpp 2016-12-03 10:38:06.000000000 +0900
@@ -141,7 +141,7 @@
double
HPYLM::hpy_probability (int *word, int *history)
{
- return hpy_probability ((witerator)word, (witerator)history);
+ return hpy_probability ((witerator&)word, (witerator&)history);
}