Skip to content

Commit

Permalink
Additional int casts.
Browse files Browse the repository at this point in the history
  • Loading branch information
josephbirkner committed Feb 22, 2024
1 parent 840bfa2 commit d265b53
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Cesium3DTilesContent/src/PntsToGltfConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ rapidjson::Document parseFeatureTableJson(
parsedContent.errors.emplaceError(fmt::format(
"Error when parsing feature table JSON, error code {} at byte offset "
"{}",
document.GetParseError(),
(int)document.GetParseError(),
document.GetErrorOffset()));
return document;
}
Expand Down Expand Up @@ -783,7 +783,7 @@ rapidjson::Document parseBatchTableJson(
"Error when parsing batch table JSON, error code {} at byte "
"offset "
"{}. Skip parsing metadata",
document.GetParseError(),
(int)document.GetParseError(),
document.GetErrorOffset()));
return document;
}
Expand Down
2 changes: 1 addition & 1 deletion Cesium3DTilesContent/src/QuantizedMeshLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ static QuantizedMeshMetadataResult processMetadata(
if (metadata.HasParseError()) {
result.errors.emplaceError(fmt::format(
"Error when parsing metadata, error code {} at byte offset {}",
metadata.GetParseError(),
(int)metadata.GetParseError(),
metadata.GetErrorOffset()));
return result;
}
Expand Down
4 changes: 2 additions & 2 deletions Cesium3DTilesSelection/src/CesiumIonTilesetLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ std::optional<std::string> getNewAccessToken(
pLogger,
"Error when parsing Cesium ion response, error code {} at byte offset "
"{}",
ionResponse.GetParseError(),
(int)ionResponse.GetParseError(),
ionResponse.GetErrorOffset());
return std::nullopt;
}
Expand Down Expand Up @@ -244,7 +244,7 @@ mainThreadHandleEndpointResponse(
result.errors.emplaceError(fmt::format(
"Error when parsing Cesium ion response JSON, error code {} at byte "
"offset {}",
ionResponse.GetParseError(),
(int)ionResponse.GetParseError(),
ionResponse.GetErrorOffset()));
return externals.asyncSystem.createResolvedFuture(std::move(result));
}
Expand Down
2 changes: 1 addition & 1 deletion Cesium3DTilesSelection/src/TilesetContentManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ TilesetContentManager::TilesetContentManager(
result.errors.emplaceError(fmt::format(
"Error when parsing tileset JSON, error code {} at byte "
"offset {}",
tilesetJson.GetParseError(),
(int)tilesetJson.GetParseError(),
tilesetJson.GetErrorOffset()));
return asyncSystem.createResolvedFuture(std::move(result));
}
Expand Down
4 changes: 2 additions & 2 deletions Cesium3DTilesSelection/src/TilesetJsonLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ TileLoadResult parseExternalTilesetInWorkerThread(
SPDLOG_LOGGER_ERROR(
pLogger,
"Error when parsing tileset JSON, error code {} at byte offset {}",
tilesetJson.GetParseError(),
(int)tilesetJson.GetParseError(),
tilesetJson.GetErrorOffset());
return TileLoadResult::createFailedResult(std::move(pCompletedRequest));
}
Expand Down Expand Up @@ -782,7 +782,7 @@ TilesetJsonLoader::createLoader(
result.errors.emplaceError(fmt::format(
"Error when parsing tileset JSON, error code {} at byte offset "
"{}",
tilesetJson.GetParseError(),
(int)tilesetJson.GetParseError(),
tilesetJson.GetErrorOffset()));
return result;
}
Expand Down
2 changes: 1 addition & 1 deletion CesiumRasterOverlays/src/BingMapsRasterOverlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ BingMapsRasterOverlay::createTileProvider(
fmt::format(
"Error while parsing Bing Maps imagery metadata, error code "
"{} at byte offset {}",
response.GetParseError(),
(int)response.GetParseError(),
response.GetErrorOffset())});
}

Expand Down
2 changes: 1 addition & 1 deletion CesiumRasterOverlays/src/IonRasterOverlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ IonRasterOverlay::createTileProvider(
fmt::format(
"Error while parsing Cesium ion raster overlay response, "
"error code {} at byte offset {}",
response.GetParseError(),
(int)response.GetParseError(),
response.GetErrorOffset())});
}

Expand Down

0 comments on commit d265b53

Please sign in to comment.