Skip to content

Commit d3130dd

Browse files
committed
uint
1 parent 94ab613 commit d3130dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

replication/row_event.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1157,8 +1157,8 @@ func (e *RowsEvent) decodeImage(data []byte, bitmap []byte, rowImageType EnumRow
11571157
fmt.Println(bitmap)
11581158
fmt.Println(e.ColumnCount, count, col, len(bitmap), int(e.ColumnCount)-count)
11591159
if col < int(e.ColumnCount) {
1160-
fmt.Println("??", byte((1<<int(e.ColumnCount)-col)-1), bits.OnesCount8(bitmap[col>>3]&byte((1<<int(e.ColumnCount)-col)-1)))
1161-
count += bits.OnesCount8(bitmap[col>>3] & byte((1<<int(e.ColumnCount)-col)-1))
1160+
fmt.Println("??", byte((1<<uint(e.ColumnCount)-col)-1), bits.OnesCount8(bitmap[col>>3]&byte((1<<uint(e.ColumnCount)-col)-1)))
1161+
count += bits.OnesCount8(bitmap[col>>3] & byte((1<<uint(e.ColumnCount)-col)-1))
11621162
}
11631163
fmt.Println(e.ColumnCount, count, col, len(bitmap), int(e.ColumnCount)-count)
11641164
fmt.Println()

0 commit comments

Comments
 (0)