mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-29 19:07:08 +00:00
Fix MSVC builds
This commit is contained in:
parent
e421f86bfa
commit
aeab1a0b79
@ -134,7 +134,7 @@ inline void Reflect(Writer& visitor, IndexFuncRef& value) {
|
|||||||
s += "~";
|
s += "~";
|
||||||
|
|
||||||
// id.id is unsigned, special case 0 value
|
// id.id is unsigned, special case 0 value
|
||||||
if (static_cast<ssize_t>(value.id.id) == -1) {
|
if (value.id.id == static_cast<size_t>(-1)) {
|
||||||
s += "-1";
|
s += "-1";
|
||||||
} else {
|
} else {
|
||||||
s += std::to_string(value.id.id);
|
s += std::to_string(value.id.id);
|
||||||
|
@ -110,7 +110,7 @@ struct QueryFuncRef {
|
|||||||
QueryLocation loc;
|
QueryLocation loc;
|
||||||
bool is_implicit = false;
|
bool is_implicit = false;
|
||||||
|
|
||||||
bool has_id() const { return static_cast<ssize_t>(id_.id) != -1; }
|
bool has_id() const { return id_.id != static_cast<size_t>(-1); }
|
||||||
|
|
||||||
QueryFuncRef() {} // Do not use, needed for reflect.
|
QueryFuncRef() {} // Do not use, needed for reflect.
|
||||||
QueryFuncRef(QueryFuncId id, QueryLocation loc, bool is_implicit)
|
QueryFuncRef(QueryFuncId id, QueryLocation loc, bool is_implicit)
|
||||||
|
Loading…
Reference in New Issue
Block a user