summaryrefslogtreecommitdiff
path: root/src/os
diff options
context:
space:
mode:
Diffstat (limited to 'src/os')
-rw-r--r--src/os/object/xdrstream.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/os/object/xdrstream.cc b/src/os/object/xdrstream.cc
index d7a5ace..92de986 100644
--- a/src/os/object/xdrstream.cc
+++ b/src/os/object/xdrstream.cc
@@ -82,13 +82,13 @@ XDRStream & XDRStream::operator<<(char const *data){
return *this;
}
-template<int N>
-XDRStream & XDRStream::operator<<(char const (&data)[N]){
+template<int TSize>
+XDRStream & XDRStream::operator<<(char const (&data)[TSize]){
if (!is_fixed_length) {
- *this << N;
+ *this << TSize;
}
uint32_t i;
- for (i = 0; i < N; i++) {
+ for (i = 0; i < TSize; i++) {
put(data[i]);
}
while ((i++) % 4 != 0){