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 2d497c3b8e
commit 391bc8bf38

View file

@ -636,7 +636,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
}