diff options
-rw-r--r-- | src/CommonAPI/MiddlewareInfo.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/CommonAPI/MiddlewareInfo.h b/src/CommonAPI/MiddlewareInfo.h index e58ea40..3e0e4d5 100644 --- a/src/CommonAPI/MiddlewareInfo.h +++ b/src/CommonAPI/MiddlewareInfo.h @@ -23,7 +23,7 @@ inline int FNV1aHash(const char* s) { const int FNV_prime = 16777619; int hashValue = FNV_offset_basis; - for (int i = 0; i < strlen(s); i++) { + for (unsigned int i = 0; i < strlen(s); i++) { hashValue = (hashValue ^ s[i]) * FNV_prime; } return hashValue; @@ -34,14 +34,14 @@ typedef std::shared_ptr<Runtime> (*MiddlewareRuntimeLoadFunction) (); struct MiddlewareInfo { - const int middlewareId; const char* middlewareName_; - MiddlewareRuntimeLoadFunction getInstance; + const int middlewareId_; + MiddlewareRuntimeLoadFunction getInstance_; MiddlewareInfo(const char* middlewareName, MiddlewareRuntimeLoadFunction middlewareRuntimeLoadFunction): middlewareName_(middlewareName), - middlewareId(FNV1aHash(middlewareName)), - getInstance(middlewareRuntimeLoadFunction) { + middlewareId_(FNV1aHash(middlewareName)), + getInstance_(middlewareRuntimeLoadFunction) { } }; |