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++) {
|
for (size_t j = 0; j < toSend; j++) {
|
||||||
if (j > 0) {
|
if (j > 0) {
|
||||||
// re-use already copied AQLValues
|
// re-use already copied AQLValues
|
||||||
res->copyValuesFromFirstRow(j, curRegs);
|
res->copyValuesFromFirstRow(static_cast<RegisterId>(j), curRegs);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_mustStoreResult) {
|
if (_mustStoreResult) {
|
||||||
|
|
|
@ -520,7 +520,7 @@ AqlItemBlock* IndexBlock::getSome(size_t atLeast, size_t atMost) {
|
||||||
for (size_t j = 0; j < toSend; j++) {
|
for (size_t j = 0; j < toSend; j++) {
|
||||||
if (j > 0) {
|
if (j > 0) {
|
||||||
// re-use already copied AqlValues
|
// 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,
|
// 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++) {
|
for (size_t j = 0; j < toSend; j++) {
|
||||||
if (j > 0) {
|
if (j > 0) {
|
||||||
// re-use already copied aqlvalues
|
// re-use already copied aqlvalues
|
||||||
res->copyValuesFromFirstRow(j, curRegs);
|
res->copyValuesFromFirstRow(static_cast<RegisterId>(j), curRegs);
|
||||||
}
|
}
|
||||||
if (usesVertexOutput()) {
|
if (usesVertexOutput()) {
|
||||||
res->setValue(j, _vertexReg, _vertices[_posInPaths].clone());
|
res->setValue(j, _vertexReg, _vertices[_posInPaths].clone());
|
||||||
|
|
|
@ -113,7 +113,7 @@ class StringRef {
|
||||||
if (res != 0) {
|
if (res != 0) {
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
return (_length - other.size());
|
return static_cast<int>(_length) - static_cast<int>(other.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
int compare(StringRef const& other) const {
|
int compare(StringRef const& other) const {
|
||||||
|
@ -121,7 +121,7 @@ class StringRef {
|
||||||
if (res != 0) {
|
if (res != 0) {
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
return (_length - other._length);
|
return static_cast<int>(_length) - static_cast<int>(other._length);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline std::string toString() const {
|
inline std::string toString() const {
|
||||||
|
|
Loading…
Reference in New Issue