Skip to content

Commit 9f4e27d

Browse files
committed
Merge branch 'pr/63'
GODRIVER-440 Change-Id: Iae3bdbd0b69fd9122d1a2a080ee975c04fe84a26
2 parents fc8a969 + 64aebae commit 9f4e27d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bson/element_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ func TestElement(t *testing.T) {
14861486
start: 0, offset: 2,
14871487
data: []byte{0x11, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x1, 0x00, 0x0},
14881488
}},
1489-
255, 256, nil,
1489+
256, 255, nil,
14901490
},
14911491
}
14921492

bson/value.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ func (v *Value) Timestamp() (uint32, uint32) {
817817
if v.data[v.start] != '\x11' {
818818
panic(ElementTypeError{"compact.Element.timestamp", Type(v.data[v.start])})
819819
}
820-
return binary.LittleEndian.Uint32(v.data[v.offset : v.offset+4]), binary.LittleEndian.Uint32(v.data[v.offset+4 : v.offset+8])
820+
return binary.LittleEndian.Uint32(v.data[v.offset+4 : v.offset+8]), binary.LittleEndian.Uint32(v.data[v.offset : v.offset+4])
821821
}
822822

823823
// TimestampOK is the same as Timestamp, except that it returns a boolean

0 commit comments

Comments
 (0)