From 5a7e4693fc3a33374015551fd0607a2cf78d6eaa Mon Sep 17 00:00:00 2001 From: parly Date: Thu, 14 Feb 2019 16:04:16 +0900 Subject: [PATCH] Fix GetCedarVersionNumber() --- src/Cedar/Cedar.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/Cedar/Cedar.c b/src/Cedar/Cedar.c index 75b065a3..c4a6f56a 100644 --- a/src/Cedar/Cedar.c +++ b/src/Cedar/Cedar.c @@ -1416,14 +1416,7 @@ void GetCedarVersion(char *tmp, UINT size) UINT GetCedarVersionNumber() { - UINT pow = 10; - - while (CEDAR_VERSION_MAJOR >= pow) - { - pow *= 10; - } - - return CEDAR_VERSION_MAJOR * pow + CEDAR_VERSION_MINOR; + return CEDAR_VERSION_MAJOR * 100 + CEDAR_VERSION_MINOR; } // Create Cedar object