File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -140,8 +140,8 @@ namespace {
140140 artifactLocation[" uri" ] = picojson::value (location.getfile (false ));
141141 physicalLocation[" artifactLocation" ] = picojson::value (artifactLocation);
142142 picojson::object region;
143- region[" startLine" ] = picojson::value (static_cast <int64_t >(std::max ( 1 , location.line ) ));
144- region[" startColumn" ] = picojson::value (static_cast <int64_t >(std::max ( 1U , location.column ) ));
143+ region[" startLine" ] = picojson::value (static_cast <int64_t >(location. line < 1 ? 1 : location.line ));
144+ region[" startColumn" ] = picojson::value (static_cast <int64_t >(location. column < 1 ? 1 : location.column ));
145145 region[" endLine" ] = region[" startLine" ];
146146 region[" endColumn" ] = region[" startColumn" ];
147147 physicalLocation[" region" ] = picojson::value (region);
You can’t perform that action at this time.
0 commit comments