refix the broken place

typecast from signed to unsigned of a bigger size
Merge remote-tracking branch 'origin/master' into native-tls

* origin/master:
  refix the broken place