diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-23 22:12:06 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-23 22:12:06 +0000 |
commit | 5e6db74d7999541c067980fdd060f5f101f7b09f (patch) | |
tree | 61dac441b567311fc6e56130561a0f2235ca92eb /decoder/ff_fsa.h | |
parent | f77386b66de684a6870b9c27e8ffc744258a92dd (diff) |
pretty
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@390 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/ff_fsa.h')
-rwxr-xr-x | decoder/ff_fsa.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder/ff_fsa.h b/decoder/ff_fsa.h index 8ca1951f..41343f6c 100755 --- a/decoder/ff_fsa.h +++ b/decoder/ff_fsa.h @@ -62,8 +62,8 @@ protected: std::memcpy(state,begin,n); } template <class T> - inline void static to_state(void *state,T const* begin,int n) { - to_state(state,(char const*)begin,n); + inline void static to_state(void *state,T const* begin,int n=1) { + to_state(state,(char const*)begin,n*sizeof(T)); } template <class T> inline void static to_state(void *state,T const* begin,T const* end) { |