Skip to content

Commit

Permalink
MIN Fix errors/warnings with RefSeqInfoVector C code
Browse files Browse the repository at this point in the history
  • Loading branch information
unode committed Nov 21, 2018
1 parent c33ea0e commit 51bf4bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions NGLess/Interpretation/Count/RefSeqInfoVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ struct PoolC {
}
}
const char* strdup(const char* input) {
const int len = std::strlen(input) + 1;
const unsigned int len = std::strlen(input) + 1;
if (len > block_size) {
char* n = static_cast<char*>(operator new(len));
std::strcpy(n, input);
Expand All @@ -33,7 +33,7 @@ struct PoolC {
private:

std::vector<void*> data_;
int free_;
size_t free_;
};


Expand Down Expand Up @@ -66,6 +66,6 @@ struct RefSeqInfoVector {
};

extern "C" {
void* rsiv_free(void* p) { delete static_cast<RefSeqInfoVector*>(p); }
void rsiv_free(void* p) { delete static_cast<RefSeqInfoVector*>(p); }
}

0 comments on commit 51bf4bc

Please sign in to comment.