mirror of https://gitee.com/bigwinds/arangodb
prevent VS warnings
This commit is contained in:
parent
045e411403
commit
8002607b67
|
@ -200,7 +200,7 @@ AqlItemBlock* EnumerateCollectionBlock::getSome(size_t, // atLeast,
|
|||
for (size_t j = 0; j < toSend; j++) {
|
||||
if (j > 0) {
|
||||
// re-use already copied AQLValues
|
||||
res->copyValuesFromFirstRow(j, curRegs);
|
||||
res->copyValuesFromFirstRow(static_cast<RegisterId>(j), curRegs);
|
||||
}
|
||||
|
||||
if (_mustStoreResult) {
|
||||
|
|
|
@ -520,7 +520,7 @@ AqlItemBlock* IndexBlock::getSome(size_t atLeast, size_t atMost) {
|
|||
for (size_t j = 0; j < toSend; j++) {
|
||||
if (j > 0) {
|
||||
// re-use already copied AqlValues
|
||||
res->copyValuesFromFirstRow(j, curRegs);
|
||||
res->copyValuesFromFirstRow(static_cast<RegisterId>(j), curRegs);
|
||||
}
|
||||
|
||||
// The result is in the first variable of this depth,
|
||||
|
|
|
@ -458,7 +458,7 @@ AqlItemBlock* TraversalBlock::getSome(size_t, // atLeast,
|
|||
for (size_t j = 0; j < toSend; j++) {
|
||||
if (j > 0) {
|
||||
// re-use already copied aqlvalues
|
||||
res->copyValuesFromFirstRow(j, curRegs);
|
||||
res->copyValuesFromFirstRow(static_cast<RegisterId>(j), curRegs);
|
||||
}
|
||||
if (usesVertexOutput()) {
|
||||
res->setValue(j, _vertexReg, _vertices[_posInPaths].clone());
|
||||
|
|
|
@ -113,7 +113,7 @@ class StringRef {
|
|||
if (res != 0) {
|
||||
return res;
|
||||
}
|
||||
return (_length - other.size());
|
||||
return static_cast<int>(_length) - static_cast<int>(other.size());
|
||||
}
|
||||
|
||||
int compare(StringRef const& other) const {
|
||||
|
@ -121,7 +121,7 @@ class StringRef {
|
|||
if (res != 0) {
|
||||
return res;
|
||||
}
|
||||
return (_length - other._length);
|
||||
return static_cast<int>(_length) - static_cast<int>(other._length);
|
||||
}
|
||||
|
||||
inline std::string toString() const {
|
||||
|
|
Loading…
Reference in New Issue