# HG changeset patch # User Sebastien Jodogne # Date 1574860580 -3600 # Node ID 91d86144fb79a6c6e941072f8d65ca954feda600 # Parent f417a0ae282b6c5141a70d813a11b5cd2a409e4b fix build diff -r f417a0ae282b -r 91d86144fb79 Framework/Radiography/RadiographySceneWriter.cpp --- a/Framework/Radiography/RadiographySceneWriter.cpp Tue Nov 26 15:27:48 2019 +0100 +++ b/Framework/Radiography/RadiographySceneWriter.cpp Wed Nov 27 14:16:20 2019 +0100 @@ -62,7 +62,7 @@ { output["type"] = "text"; output["text"] = layer.GetText(); - output["fontSize"] = layer.GetFontSize(); + output["fontSize"] = static_cast(layer.GetFontSize()); output["foreground"] = layer.GetForeground(); } diff -r f417a0ae282b -r 91d86144fb79 Framework/Radiography/RadiographyTextLayer.h --- a/Framework/Radiography/RadiographyTextLayer.h Tue Nov 26 15:27:48 2019 +0100 +++ b/Framework/Radiography/RadiographyTextLayer.h Wed Nov 27 14:16:20 2019 +0100 @@ -49,12 +49,12 @@ return text_; } - const size_t& GetFontSize() const + size_t GetFontSize() const { return fontSize_; } - const size_t& GetForeground() const + uint8_t GetForeground() const { return foreground_; } diff -r f417a0ae282b -r 91d86144fb79 Framework/Toolbox/GenericToolbox.h --- a/Framework/Toolbox/GenericToolbox.h Tue Nov 26 15:27:48 2019 +0100 +++ b/Framework/Toolbox/GenericToolbox.h Wed Nov 27 14:16:20 2019 +0100 @@ -136,7 +136,7 @@ if (*p == '.') { double f = 0.0; - int n = 1; + size_t n = 1; ++p; while (*p >= '0' && *p <= '9' && n < FRAC_FACTORS_LEN) {