Commit 96410d81 authored by Claes Sjofors's avatar Claes Sjofors

User database bugfix for storage of privilege on 64-bit

parent 2d4da514
......@@ -978,12 +978,12 @@ char *UserList::pwcrypt( const char *str)
return cstr;
}
unsigned long UserList::icrypt( unsigned long i)
unsigned int UserList::icrypt( unsigned int i)
{
return ~(i + 123456);
}
unsigned long UserList::idecrypt( unsigned long i)
unsigned int UserList::idecrypt( unsigned int i)
{
return ~i - 123456;
}
......
......@@ -203,8 +203,8 @@ class UserList {
pwr_tString40 sms;
UserList *next;
unsigned long icrypt( unsigned long i);
unsigned long idecrypt( unsigned long i);
unsigned int icrypt( unsigned int i);
unsigned int idecrypt( unsigned int i);
public:
int load( ifstream& fp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment