freebsd-ports/textproc/randlm/files/patch-RandLM.cpp
Dimitry Andric e44ddcc2e7 Fix build of textproc/randlm with recent versions of clang.
Approved by:	portmgr blanket
Submitted by:	Walter Schwarzenfeld <w.schwarzenfeld@utanet.at>
PR:		216056
MFH:		2017Q4
2017-12-21 21:17:31 +00:00

11 lines
401 B
C++

--- src/RandLM/RandLM.cpp.orig 2017-03-07 02:01:18 UTC
+++ src/RandLM/RandLM.cpp
@@ -66,7 +66,7 @@ namespace randlm {
smoothing_name = kStupidBackoffSmoothing;
break;
case kWittenBellSmoothingCode:
- smoothing_name == kWittenBellSmoothing;
+ smoothing_name = kWittenBellSmoothing;
break;
case kBackoffSmoothingCode:
smoothing_name = kBackoffSmoothing;