diff options
Diffstat (limited to 'bsondump/bsondump.go')
-rw-r--r-- | bsondump/bsondump.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsondump/bsondump.go b/bsondump/bsondump.go index fc29c985305..9eb08ccb7af 100644 --- a/bsondump/bsondump.go +++ b/bsondump/bsondump.go @@ -121,7 +121,7 @@ func DebugBSON(raw bson.Raw, indentLevel int, out io.Writer) error { // 3. The BSON value // So size == 1 [size of type byte] + 1 [null byte for cstring key] + len(bson key) + len(bson value) // see http://bsonspec.org/spec.html for more details - fmt.Fprintf(out, "%v\t\t\ttype: %4v size: %v\n", indent, rawElem.Value.Kind, + fmt.Fprintf(out, "%v\t\t\ttype: %4v size: %v\n", indent, int8(rawElem.Value.Kind), 2+len(rawElem.Name)+len(rawElem.Value.Data)) //For nested objects or arrays, recurse. |