From face73ad7eee981981d2474b9fe41d3c83438eca Mon Sep 17 00:00:00 2001 From: hax0kartik Date: Sun, 5 Apr 2020 22:45:47 -0400 Subject: [PATCH] Fix compilation --- src/zm_user.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zm_user.cpp b/src/zm_user.cpp index 2d4a20851..918c93866 100644 --- a/src/zm_user.cpp +++ b/src/zm_user.cpp @@ -53,7 +53,7 @@ User::User(const MYSQL_ROW &dbrow) { id = atoi(dbrow[index++]); strncpy(username, dbrow[index++], sizeof(username)-1); strncpy(password, dbrow[index++], sizeof(password)-1); - enabled = static_castatoi(dbrow[index++]); + enabled = static_cast(atoi(dbrow[index++])); stream = (Permission)atoi(dbrow[index++]); events = (Permission)atoi(dbrow[index++]); control = (Permission)atoi(dbrow[index++]);