diff options
author | lloyd <[email protected]> | 2008-11-23 18:18:33 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-23 18:18:33 +0000 |
commit | 817cb101ba02c2e7905e5d7eed654c526acfc25e (patch) | |
tree | 7d53b267bbf9a387e2e5a12847abd721b3322741 /src/utils/xor_buf.h | |
parent | 80765fbb60959a6b5da7863e2c8dcfb53aeecf20 (diff) |
Pass by const reference so larger structs can be used with xor_into_buf template
Diffstat (limited to 'src/utils/xor_buf.h')
-rw-r--r-- | src/utils/xor_buf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/xor_buf.h b/src/utils/xor_buf.h index bbc6d3eec..74bfeef0b 100644 --- a/src/utils/xor_buf.h +++ b/src/utils/xor_buf.h @@ -78,7 +78,7 @@ u32bit xor_into_buf(byte buf[], u32bit buf_i, u32bit length, */ template<typename T> u32bit xor_into_buf(byte buf[], u32bit buf_i, - u32bit length, T in) + u32bit length, const T& in) { return xor_into_buf(buf, buf_i, length, &in, sizeof(in)); } |