diff options
author | kwolekr <kwolekr@minetest.net> | 2015-07-08 11:53:02 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-07-10 15:58:57 -0400 |
commit | 8eb272cea38325f963c521ecfa7b927a563f8509 (patch) | |
tree | 28b54d7ad2e7195413ff7516412761de7b2ef1ee /src/noise.cpp | |
parent | e6f0178e83b81befded22d3a0de8200739e2d7c3 (diff) | |
download | minetest-8eb272cea38325f963c521ecfa7b927a563f8509.tar.gz minetest-8eb272cea38325f963c521ecfa7b927a563f8509.tar.bz2 minetest-8eb272cea38325f963c521ecfa7b927a563f8509.zip |
Misc. minor fixes
Diffstat (limited to 'src/noise.cpp')
-rw-r--r-- | src/noise.cpp | 2 |
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; } } |