File tree Expand file tree Collapse file tree 7 files changed +17
-15
lines changed
Expand file tree Collapse file tree 7 files changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -13477,7 +13477,7 @@ FileSizeOptions::file(void) const {
1347713477inline
1347813478Dictionary::Dictionary(void)
1347913479 : max_len(0), n_all_words(0), chunk(NULL) {
13480- for (int i=max_len; i--; ) {
13480+ for (unsigned int i=max_len; i--; ) {
1348113481 n_words[i]=0; s_words[i]=NULL;
1348213482 }
1348313483}
Original file line number Diff line number Diff line change @@ -288,6 +288,8 @@ namespace Gecode { namespace FlatZinc {
288288 // / Check status of brancher, return true if alternatives left
289289 virtual bool status (const Space& home) const ;
290290 // / Return choice
291+ virtual const Choice* choice (Space& home) = 0;
292+ // / Return choice
291293 virtual const Choice* choice (const Space& home, Archive& e);
292294 // / Perform commit for choice \a c and alternative \a b
293295 virtual ExecStatus commit (Space& home, const Choice& c, unsigned int b);
Original file line number Diff line number Diff line change @@ -2124,7 +2124,7 @@ namespace Gecode {
21242124 // / Return largest symbol in DFA
21252125 int symbol_max (void ) const ;
21262126 // / Return hash key
2127- size_t hash (void ) const ;
2127+ std:: size_t hash (void ) const ;
21282128 };
21292129
21302130}
@@ -2197,7 +2197,7 @@ namespace Gecode {
21972197 // / Largest value
21982198 int max;
21992199 // / Hash key
2200- size_t key;
2200+ std:: size_t key;
22012201 // / Tuple data
22022202 int * td;
22032203 // / Value data
@@ -2302,7 +2302,7 @@ namespace Gecode {
23022302 // / Return maximal value in all tuples
23032303 int max (void ) const ;
23042304 // / Return hash key
2305- size_t hash (void ) const ;
2305+ std:: size_t hash (void ) const ;
23062306 // @}
23072307
23082308 // / \name Range access and iteration
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ namespace Gecode {
5858 // / Last final state
5959 int final_lst;
6060 // / Hash key
61- size_t key;
61+ std:: size_t key;
6262 // / The transitions
6363 Transition* trans;
6464 // / Specification of transition range
@@ -95,7 +95,7 @@ namespace Gecode {
9595
9696 forceinline void
9797 DFA::DFAI::fill (void ) {
98- key = static_cast <size_t >(n_states);
98+ key = static_cast <std:: size_t >(n_states);
9999 cmb_hash (key, n_trans);
100100 cmb_hash (key, n_symbols);
101101 cmb_hash (key, final_fst);
@@ -189,7 +189,7 @@ namespace Gecode {
189189 d->trans [d->n_trans -1 ].symbol : Int::Limits::max;
190190 }
191191
192- forceinline size_t
192+ forceinline std:: size_t
193193 DFA::hash (void ) const {
194194 const DFAI* d = static_cast <DFAI*>(object ());
195195 return (d != NULL ) ? d->key : 0 ;
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ namespace Gecode {
139139 assert (j <= n_tuples);
140140 n_tuples=j;
141141 // Initialize hash key
142- key = static_cast <size_t >(n_tuples);
142+ key = static_cast <std:: size_t >(n_tuples);
143143 cmb_hash (key, arity);
144144 // Copy into now possibly smaller area
145145 int * new_td = heap.alloc <int >(n_tuples*arity);
Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ namespace Gecode {
227227 return equal (t);
228228 }
229229
230- forceinline size_t
230+ forceinline std:: size_t
231231 TupleSet::hash (void ) const {
232232 return data ().key ;
233233 }
Original file line number Diff line number Diff line change 4040namespace Gecode {
4141
4242 // / Combine hash value \a h into \a seed
43- void cmb_hash (size_t & seed, size_t h);
43+ void cmb_hash (std:: size_t & seed, std:: size_t h);
4444 // / Combine hash value \a h into \a seed
45- void cmb_hash (size_t & seed, int h);
45+ void cmb_hash (std:: size_t & seed, int h);
4646 // / Combine hash value \a h into \a seed
47- void cmb_hash (size_t & seed, unsigned int h);
47+ void cmb_hash (std:: size_t & seed, unsigned int h);
4848
4949
5050 forceinline void
51- cmb_hash (size_t & seed, size_t h) {
51+ cmb_hash (std:: size_t & seed, size_t h) {
5252 seed ^= h + 0x9e3779b9 + (seed << 6 ) + (seed >> 2 );
5353 }
5454
5555 forceinline void
56- cmb_hash (size_t & seed, int h) {
56+ cmb_hash (std:: size_t & seed, int h) {
5757 cmb_hash (seed, static_cast <size_t >(h));
5858 }
5959
6060 forceinline void
61- cmb_hash (size_t & seed, unsigned int h) {
61+ cmb_hash (std:: size_t & seed, unsigned int h) {
6262 cmb_hash (seed, static_cast <size_t >(h));
6363 }
6464
You can’t perform that action at this time.
0 commit comments