diff options
author | dwight <dwight@10gen.com> | 2010-09-07 05:30:27 -0400 |
---|---|---|
committer | dwight <dwight@10gen.com> | 2010-09-07 05:30:27 -0400 |
commit | 32d9a4cb4796dfbc9e289972e49a6a1534dba9ea (patch) | |
tree | a5cc3be246e2ab196ff0e41b77b0cfa78cdbc4fc /bson/bsoninlines.h | |
parent | edcac99f06a95970528013ff5901bef2883c371d (diff) | |
download | mongo-32d9a4cb4796dfbc9e289972e49a6a1534dba9ea.tar.gz |
comments
Diffstat (limited to 'bson/bsoninlines.h')
-rw-r--r-- | bson/bsoninlines.h | 7 |
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; } |