Skip to content

Commit a624aa6

Browse files
committed
Fix compile error before go 1.13: shift count type int, must be unsigned integer
1 parent d3fef7b commit a624aa6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

replication/row_event.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ func (e *TableMapEvent) Nullable(i int) (available, nullable bool) {
339339
if len(e.NullBitmap) == 0 {
340340
return
341341
}
342-
return true, e.NullBitmap[i/8]&(1<<(i%8)) != 0
342+
return true, e.NullBitmap[i/8]&(1<<uint(i%8)) != 0
343343
}
344344

345345
// UnsignedMap returns a map: column index -> unsigned.
@@ -355,7 +355,7 @@ func (e *TableMapEvent) UnsignedMap() map[int]bool {
355355
if !IsNumericType(e.ColumnType[i]) {
356356
continue
357357
}
358-
ret[i] = e.SignednessBitmap[p/8]&(1<<(7-p%8)) != 0
358+
ret[i] = e.SignednessBitmap[p/8]&(1<<uint(7-p%8)) != 0
359359
p++
360360
}
361361
return ret

0 commit comments

Comments
 (0)