summaryrefslogtreecommitdiff
path: root/pjlib/include
diff options
context:
space:
mode:
Diffstat (limited to 'pjlib/include')
-rw-r--r--pjlib/include/pj/math.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pjlib/include/pj/math.h b/pjlib/include/pj/math.h
index 8d202dbf..4d523c35 100644
--- a/pjlib/include/pj/math.h
+++ b/pjlib/include/pj/math.h
@@ -168,7 +168,7 @@ PJ_INLINE(void) pj_math_stat_update(pj_math_stat *stat, int val)
*
* @return The standard deviation.
*/
-PJ_INLINE(unsigned) pj_math_stat_get_stddev(pj_math_stat *stat)
+PJ_INLINE(unsigned) pj_math_stat_get_stddev(const pj_math_stat *stat)
{
if (stat->n == 0) return 0;
return (pj_isqrt((unsigned)(stat->m2_/stat->n)));