app/vmselect: fix 32bit arm build

Fixes https://github.com/VictoriaMetrics/VictoriaMetrics/issues/83
This commit is contained in:
Aliaksandr Valialkin 2019-06-27 19:36:15 +03:00
parent 796b010139
commit 55bcf60ea6

View file

@ -581,7 +581,7 @@ func getDuration(r *http.Request, argKey string, defaultValue int64) (int64, err
}
msecs := int64(secs * 1e3)
if msecs <= 0 || msecs > maxDurationMsecs {
return 0, fmt.Errorf("%q=%dms is out of allowed range [%d ... %d]", argKey, msecs, 0, maxDurationMsecs)
return 0, fmt.Errorf("%q=%dms is out of allowed range [%d ... %d]", argKey, msecs, 0, int64(maxDurationMsecs))
}
return msecs, nil
}