1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-12 14:30:41 +00:00

add unconverted support

This commit is contained in:
Sergey Lanzman
2017-03-17 19:45:30 +02:00
parent 21d1267c14
commit 856fde28dc
9 changed files with 25 additions and 29 deletions

View File

@ -395,7 +395,7 @@ func sovLog(x uint64) (n int) {
return n
}
func sozLog(x uint64) (n int) {
return sovLog(uint64((x << 1) ^ uint64((int64(x) >> 63))))
return sovLog((x << 1) ^ (x >> 63))
}
func (m *Log) Unmarshal(data []byte) error {
var hasFields [1]uint64

View File

@ -106,7 +106,7 @@ func (s *SMTPWriter) sendMail(hostAddressWithPort string, auth smtp.Auth, fromAd
if err != nil {
return err
}
_, err = w.Write([]byte(msgContent))
_, err = w.Write(msgContent)
if err != nil {
return err
}