From 3203ad1f6cd5387c54534ff9737e12a4fc5c928d Mon Sep 17 00:00:00 2001 From: tmj-fstate Date: Sun, 7 May 2017 15:30:28 +0200 Subject: [PATCH] build 170507. vs2015 compliance --- Driver.h | 4 ++-- uilayer.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Driver.h b/Driver.h index dcbd3b81..d33a2510 100644 --- a/Driver.h +++ b/Driver.h @@ -173,8 +173,8 @@ class TController double fLastVel = 0.0; // prÄ™dkość na poprzednio sprawdzonym torze TTrack *tLast = nullptr; // ostatni analizowany tor TEvent *eSignSkip = nullptr; // można pominąć ten SBL po zatrzymaniu - std::size_t SemNextIndex{ -1 }; - std::size_t SemNextStopIndex{ -1 }; + std::size_t SemNextIndex{ std::size_t(-1) }; + std::size_t SemNextStopIndex{ std::size_t( -1 ) }; private: // parametry aktualnego skÅ‚adu double fLength = 0.0; // dÅ‚ugość skÅ‚adu (do wyciÄ…gania z ograniczeÅ„) double fMass = 0.0; // caÅ‚kowita masa do liczenia stycznej skÅ‚adowej grawitacji diff --git a/uilayer.h b/uilayer.h index 65bcfefe..8966ec8b 100644 --- a/uilayer.h +++ b/uilayer.h @@ -76,7 +76,7 @@ private: // members: - GLuint m_fontbase{ -1 }; // numer DL dla znaków w napisach + GLuint m_fontbase{ (GLuint)-1 }; // numer DL dla znaków w napisach float m_progress{ 0.0f }; // percentage of filled progres bar, to indicate lengthy operations. float m_subtaskprogress{ 0.0f }; // percentage of filled progres bar, to indicate lengthy operations. texture_manager::size_type m_background; // path to texture used as the background. size depends on mAspect.