summaryrefslogtreecommitdiff
path: root/bson/bsoninlines.h
diff options
context:
space:
mode:
authordwight <dwight@10gen.com>2010-09-07 05:30:27 -0400
committerdwight <dwight@10gen.com>2010-09-07 05:30:27 -0400
commit32d9a4cb4796dfbc9e289972e49a6a1534dba9ea (patch)
treea5cc3be246e2ab196ff0e41b77b0cfa78cdbc4fc /bson/bsoninlines.h
parentedcac99f06a95970528013ff5901bef2883c371d (diff)
downloadmongo-32d9a4cb4796dfbc9e289972e49a6a1534dba9ea.tar.gz
comments
Diffstat (limited to 'bson/bsoninlines.h')
-rw-r--r--bson/bsoninlines.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/bson/bsoninlines.h b/bson/bsoninlines.h
index 3fc80c65578..f35bbf7fc8c 100644
--- a/bson/bsoninlines.h
+++ b/bson/bsoninlines.h
@@ -510,8 +510,11 @@ namespace mongo {
}
inline BSONObj::BSONObj() {
- /* LITTLE ENDIAN */
- static char p[] = { 5, 0, 0, 0, 0 };
+ /* little endian ordering here, but perhaps that is ok regardless as BSON is spec'd
+ to be little endian external to the system. (i.e. the rest of the implementation of bson,
+ not this part, fails to support big endian)
+ */
+ static char p[] = { /*size*/5, 0, 0, 0, /*eoo*/0 };
_objdata = p;
}