aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/xor_buf.h2
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));
}