summaryrefslogtreecommitdiff
path: root/src/noise.cpp
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-07-08 11:53:02 -0400
committerkwolekr <kwolekr@minetest.net>2015-07-10 15:58:57 -0400
commit8eb272cea38325f963c521ecfa7b927a563f8509 (patch)
tree28b54d7ad2e7195413ff7516412761de7b2ef1ee /src/noise.cpp
parente6f0178e83b81befded22d3a0de8200739e2d7c3 (diff)
downloadminetest-8eb272cea38325f963c521ecfa7b927a563f8509.tar.gz
minetest-8eb272cea38325f963c521ecfa7b927a563f8509.tar.bz2
minetest-8eb272cea38325f963c521ecfa7b927a563f8509.zip
Misc. minor fixes
Diffstat (limited to 'src/noise.cpp')
-rw-r--r--src/noise.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/noise.cpp b/src/noise.cpp
index 826593474..5b08eb942 100644
--- a/src/noise.cpp
+++ b/src/noise.cpp
@@ -138,7 +138,7 @@ void PcgRandom::bytes(void *out, size_t len)
*outb = r & 0xFF;
outb++;
bytes_left--;
- r >>= 8;
+ r >>= CHAR_BIT;
}
}