mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 19:23:03 +01:00
Fix a few warnings. Not very harmless ones
This commit is contained in:
parent
f59897bdb3
commit
f13321bc74
@ -225,7 +225,7 @@ namespace Firebird {
|
||||
if (lastpos < 0) {
|
||||
return npos;
|
||||
}
|
||||
if (pos < lastpos) {
|
||||
if (pos < static_cast<size_type>(lastpos)) {
|
||||
lastpos = pos;
|
||||
}
|
||||
const_pointer start = c_str();
|
||||
@ -244,7 +244,7 @@ namespace Firebird {
|
||||
if (lastpos < 0) {
|
||||
return npos;
|
||||
}
|
||||
if (pos < lastpos) {
|
||||
if (pos < static_cast<size_type>(lastpos)) {
|
||||
lastpos = pos;
|
||||
}
|
||||
const_pointer start = c_str();
|
||||
@ -273,7 +273,7 @@ namespace Firebird {
|
||||
AbstractString::size_type AbstractString::find_last_of(const_pointer s, size_type pos, size_type n) const {
|
||||
strBitMask sm(s, n);
|
||||
int lpos = length() - 1;
|
||||
if (pos < lpos) {
|
||||
if (static_cast<int>(pos) < lpos) {
|
||||
lpos = pos;
|
||||
}
|
||||
const_pointer p = &c_str()[lpos];
|
||||
@ -301,7 +301,7 @@ namespace Firebird {
|
||||
AbstractString::size_type AbstractString::find_last_not_of(const_pointer s, size_type pos, size_type n) const {
|
||||
strBitMask sm(s, n);
|
||||
int lpos = length() - 1;
|
||||
if (pos < lpos) {
|
||||
if (static_cast<int>(pos) < lpos) {
|
||||
lpos = pos;
|
||||
}
|
||||
const_pointer p = &c_str()[lpos];
|
||||
|
Loading…
Reference in New Issue
Block a user