summaryrefslogtreecommitdiff
path: root/decoder/sentences.h
diff options
context:
space:
mode:
Diffstat (limited to 'decoder/sentences.h')
-rwxr-xr-xdecoder/sentences.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/decoder/sentences.h b/decoder/sentences.h
index 4c71f8f1..54b5ffb3 100755
--- a/decoder/sentences.h
+++ b/decoder/sentences.h
@@ -29,9 +29,10 @@ inline void wordcpy(WordID *dest,WordID const* src,int n) {
inline void wordcpy(WordID *dest,WordID const* src,WordID const* src_end) {
wordcpy(dest,src,src_end-src);
}
-inline void wordcpy_reverse(WordID *dest,WordID const* src,WordID const* src_end) {
+inline WordID *wordcpy_reverse(WordID *dest,WordID const* src,WordID const* src_end) {
for(WordID const* i=src_end;i>src;)
*dest++=*--i;
+ return dest;
}
inline Sentence singleton_sentence(WordID t) {
return Sentence(1,t);