From 061b34a5d84d00df340550d75f664be5e174276c Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Wed, 22 Aug 2012 15:56:13 -0700 Subject: [PATCH] nodestack: don't use uint32_t uint32_t (and similar) should only be used when an exact field-size is needed across platforms with different integer sizes. In this case, we only need an unsigned type, so just use unsigned int. --- nodestack.cc | 4 ++-- nodestack.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nodestack.cc b/nodestack.cc index 75ca012..47f724d 100644 --- a/nodestack.cc +++ b/nodestack.cc @@ -60,7 +60,7 @@ void Node::print_may_read_from() * Sets a promise to explore meeting with the given node. * @param i is the promise index. */ -void Node::set_promise(uint32_t i) { +void Node::set_promise(unsigned int i) { if (i>=promises.size()) promises.resize(i+1,0); promises[i]=1; @@ -71,7 +71,7 @@ void Node::set_promise(uint32_t i) { * @param i The promise index. * @return true if the promise should be satisfied by the given model action. */ -bool Node::get_promise(uint32_t i) { +bool Node::get_promise(unsigned int i) { return (i > future_values; - std::vector< uint32_t, MyAlloc< uint32_t > > promises; + std::vector< unsigned int, MyAlloc > promises; unsigned int future_index; }; -- 2.34.1