Skip to content

Commit c401da9

Browse files
author
Christian Schulte
committed
Some warnings removed
git-svn-id: svn+ssh://svn.gecode.org/srv/gecode/svn/gecode/trunk@16762 64335634-5103-0410-b293-fc3d331e086d
1 parent f0b137b commit c401da9

File tree

7 files changed

+17
-15
lines changed

7 files changed

+17
-15
lines changed

examples/scowl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13477,7 +13477,7 @@ FileSizeOptions::file(void) const {
1347713477
inline
1347813478
Dictionary::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
}

gecode/flatzinc/branch.hh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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);

gecode/int.hh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

gecode/int/extensional/dfa.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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;

gecode/int/extensional/tuple-set.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

gecode/int/extensional/tuple-set.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

gecode/support/hash.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,25 @@
4040
namespace 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

0 commit comments

Comments
 (0)