diff options
author | John Langford <jl@nyclamp.(none)> | 2013-10-30 21:58:27 +0400 |
---|---|---|
committer | John Langford <jl@nyclamp.(none)> | 2013-10-30 21:58:27 +0400 |
commit | d40a24a72b69dc00cd02b153caf3179939030904 (patch) | |
tree | c469cb7014387784b81109738221bf37e628a48b /vowpalwabbit/vw.h | |
parent | 53a0a7e5a757761ae9b0780c1a0c2cb648a08faf (diff) |
finish is autorecursive
Diffstat (limited to 'vowpalwabbit/vw.h')
-rw-r--r-- | vowpalwabbit/vw.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vowpalwabbit/vw.h b/vowpalwabbit/vw.h index 9696d2a4..51b50321 100644 --- a/vowpalwabbit/vw.h +++ b/vowpalwabbit/vw.h @@ -93,10 +93,10 @@ namespace VW { } inline float get_weight(vw& all, uint32_t index, uint32_t offset) - { return all.reg.weight_vector[(index * all.reg.stride) & all.reg.weight_mask + offset];} + { return all.reg.weight_vector[((index * all.reg.stride) & all.reg.weight_mask) + offset];} inline void set_weight(vw& all, uint32_t index, uint32_t offset, float value) - { all.reg.weight_vector[(index * all.reg.stride) & all.reg.weight_mask + offset] = value;} + { all.reg.weight_vector[((index * all.reg.stride) & all.reg.weight_mask) + offset] = value;} inline uint32_t num_weights(vw& all) { return (uint32_t)all.length();} |