diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-04-03 14:27:44 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-04-05 14:15:27 +0200 |
commit | 2aa69d7483f5715ea8a1319657b5f6edb7199959 (patch) | |
tree | 6113c17069f81ac50b52e3d3c5d633a2b2830d60 /crawl-ref/source/perlin.cc | |
parent | 544981c1f93a8893c702ef8e75c73f7962729d3f (diff) | |
download | crawl-ref-2aa69d7483f5715ea8a1319657b5f6edb7199959.tar.gz crawl-ref-2aa69d7483f5715ea8a1319657b5f6edb7199959.zip |
Hush a warning: "const bool" is redundant.
Diffstat (limited to 'crawl-ref/source/perlin.cc')
-rw-r--r-- | crawl-ref/source/perlin.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/perlin.cc b/crawl-ref/source/perlin.cc index d8ce42a1f1..2ffccc50a7 100644 --- a/crawl-ref/source/perlin.cc +++ b/crawl-ref/source/perlin.cc @@ -91,7 +91,8 @@ namespace perlin 49,192,214, 31,181,199,106,157,184, 84,204,176,115,121,50,45,127, 4,150,254, 138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180}; - static const uint8_t permMod12(const uint32_t x) { + static IMMUTABLE uint8_t permMod12(const uint32_t x) + { return perm[x] % 12; } |