From d4b23ccb8ab79425d7962def3be940d3dcd951ca Mon Sep 17 00:00:00 2001 From: Nat Goodspeed Date: Wed, 30 Nov 2016 16:24:32 -0500 Subject: DRTVWR-418: VertexMap::mapped_type -> size_t: we store map.size(). --- indra/llcommon/lldependencies.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra/llcommon/lldependencies.h') diff --git a/indra/llcommon/lldependencies.h b/indra/llcommon/lldependencies.h index 125bd6a835..de214a8943 100644 --- a/indra/llcommon/lldependencies.h +++ b/indra/llcommon/lldependencies.h @@ -508,7 +508,7 @@ public: // been explicitly added. Rely on std::map rejecting a second attempt // to insert the same key. Use the map's size() as the vertex number // to get a distinct value for each successful insertion. - typedef std::map VertexMap; + typedef std::map VertexMap; VertexMap vmap; // Nest each of these loops because !@#$%? MSVC warns us that its // former broken behavior has finally been fixed -- and our builds -- cgit v1.2.3 From 68d98acb920a49880662db0d20ccdf52edbc0151 Mon Sep 17 00:00:00 2001 From: Nat Goodspeed Date: Thu, 1 Dec 2016 08:44:52 -0500 Subject: DRTVWR-418: In 64 bits, storing size_t in an int is a no-no. --- indra/llcommon/lldependencies.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'indra/llcommon/lldependencies.h') diff --git a/indra/llcommon/lldependencies.h b/indra/llcommon/lldependencies.h index de214a8943..db2bbab8b0 100644 --- a/indra/llcommon/lldependencies.h +++ b/indra/llcommon/lldependencies.h @@ -124,8 +124,8 @@ public: virtual std::string describe(bool full=true) const; protected: - typedef std::vector< std::pair > EdgeList; - typedef std::vector VertexList; + typedef std::vector< std::pair > EdgeList; + typedef std::vector VertexList; VertexList topo_sort(int vertices, const EdgeList& edges) const; /** -- cgit v1.2.3