From: Brian Norris Date: Wed, 22 Aug 2012 22:56:13 +0000 (-0700) Subject: nodestack: don't use uint32_t X-Git-Tag: pldi2013~259 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=061b34a5d84d00df340550d75f664be5e174276c;p=model-checker.git 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. --- 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; };