mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
Fix GetCedarVersionNumber()
This commit is contained in:
parent
d790223700
commit
5a7e4693fc
@ -1416,14 +1416,7 @@ void GetCedarVersion(char *tmp, UINT size)
|
|||||||
|
|
||||||
UINT GetCedarVersionNumber()
|
UINT GetCedarVersionNumber()
|
||||||
{
|
{
|
||||||
UINT pow = 10;
|
return CEDAR_VERSION_MAJOR * 100 + CEDAR_VERSION_MINOR;
|
||||||
|
|
||||||
while (CEDAR_VERSION_MAJOR >= pow)
|
|
||||||
{
|
|
||||||
pow *= 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
return CEDAR_VERSION_MAJOR * pow + CEDAR_VERSION_MINOR;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create Cedar object
|
// Create Cedar object
|
||||||
|
Loading…
Reference in New Issue
Block a user