summaryrefslogtreecommitdiff
path: root/decoder/ff_fsa.h
diff options
context:
space:
mode:
Diffstat (limited to 'decoder/ff_fsa.h')
-rwxr-xr-xdecoder/ff_fsa.h4
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) {