aboutsummaryrefslogtreecommitdiff
path: root/gps/core/LocApiBase.h
diff options
context:
space:
mode:
Diffstat (limited to 'gps/core/LocApiBase.h')
-rw-r--r--gps/core/LocApiBase.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/gps/core/LocApiBase.h b/gps/core/LocApiBase.h
index 9ea5560..18f8623 100644
--- a/gps/core/LocApiBase.h
+++ b/gps/core/LocApiBase.h
@@ -214,9 +214,15 @@ public:
virtual void installAGpsCert(const DerEncodedCertificate* pData,
size_t length,
uint32_t slotBitMask);
- inline virtual void setInSession(bool inSession) {}
+ inline virtual void setInSession(bool inSession) {
+
+ (void)inSession;
+ }
inline bool isMessageSupported (LocCheckingMessagesID msgID) const {
- if (msgID > (sizeof(mSupportedMsg) << 3)) {
+
+ // confirm if msgID is not larger than the number of bits in
+ // mSupportedMsg
+ if ((uint64_t)msgID > (sizeof(mSupportedMsg) << 3)) {
return false;
} else {
uint32_t messageChecker = 1 << msgID;