compile errors
[iotcloud.git] / version2 / src / C / SlotIndexer.cc
index c3633188f141cf20d1ec4c19b19a633c00df0ca1..b49ca454e749953f152d9ef85f0caf75933675b9 100644 (file)
@@ -18,7 +18,7 @@ SlotIndexer::SlotIndexer(Array<Slot *> *_updates, SlotBuffer *_buffer) :
 Slot *SlotIndexer::getSlot(int64_t seqnum) {
        if (seqnum >= firstslotseqnum) {
                int32_t offset = (int32_t) (seqnum - firstslotseqnum);
-               if (offset >= updates->length())
+               if (((uint32_t)offset) >= updates->length())
                        throw new Error("Invalid Slot Sequence Number Reference");
                else
                        return updates->get(offset);