Fix compilation

This commit is contained in:
hax0kartik 2020-04-05 22:45:47 -04:00
parent 14c28715d8
commit face73ad7e
1 changed files with 1 additions and 1 deletions

View File

@ -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_cast<bool>atoi(dbrow[index++]);
enabled = static_cast<bool>(atoi(dbrow[index++]));
stream = (Permission)atoi(dbrow[index++]);
events = (Permission)atoi(dbrow[index++]);
control = (Permission)atoi(dbrow[index++]);