diff options
author | Asaad Mahmood <Unknowngi@live.com> | 2015-07-07 20:16:14 +0500 |
---|---|---|
committer | Asaad Mahmood <Unknowngi@live.com> | 2015-07-07 20:16:14 +0500 |
commit | 14f02b770b5b5ea65003ae6e885d52d619a3f836 (patch) | |
tree | 1ad8f9c232b1619c2865336514f8945a2983cda0 /api | |
parent | 73cb6904a1d8f365a41695f1b673975bc0228e9a (diff) | |
parent | 95b9f872882b367556ca2330eea8c8309db542e6 (diff) | |
download | chat-14f02b770b5b5ea65003ae6e885d52d619a3f836.tar.gz chat-14f02b770b5b5ea65003ae6e885d52d619a3f836.tar.bz2 chat-14f02b770b5b5ea65003ae6e885d52d619a3f836.zip |
Merge branch 'master' of https://github.com/mattermost/platform
Diffstat (limited to 'api')
-rw-r--r-- | api/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/user.go b/api/user.go index 292d2b61b..ada781bc7 100644 --- a/api/user.go +++ b/api/user.go @@ -593,7 +593,7 @@ func createProfileImage(username string, userId string) ([]byte, *model.AppError h.Write([]byte(userId)) seed := h.Sum32() - color := colors[int(seed)%len(colors)] + color := colors[int64(seed)%int64(len(colors))] img := image.NewRGBA(image.Rect(0, 0, int(utils.Cfg.ImageSettings.ProfileWidth), int(utils.Cfg.ImageSettings.ProfileHeight))) draw.Draw(img, img.Bounds(), &image.Uniform{color}, image.ZP, draw.Src) |