diff options
author | madmaxoft <github@xoft.cz> | 2014-04-04 10:42:17 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-04-04 10:42:17 +0200 |
commit | e1f75ab6d0862d77bf91b588d54acf63fdf20c63 (patch) | |
tree | 1675ed088ad1d43168f3724e864ea4deae5c5287 /src/Protocol/Protocol.h | |
parent | More Clang warning fixes in the protocols. (diff) | |
download | cuberite-e1f75ab6d0862d77bf91b588d54acf63fdf20c63.tar cuberite-e1f75ab6d0862d77bf91b588d54acf63fdf20c63.tar.gz cuberite-e1f75ab6d0862d77bf91b588d54acf63fdf20c63.tar.bz2 cuberite-e1f75ab6d0862d77bf91b588d54acf63fdf20c63.tar.lz cuberite-e1f75ab6d0862d77bf91b588d54acf63fdf20c63.tar.xz cuberite-e1f75ab6d0862d77bf91b588d54acf63fdf20c63.tar.zst cuberite-e1f75ab6d0862d77bf91b588d54acf63fdf20c63.zip |
Diffstat (limited to 'src/Protocol/Protocol.h')
-rw-r--r-- | src/Protocol/Protocol.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Protocol/Protocol.h b/src/Protocol/Protocol.h index 8294fa8b7..ae06f2f9e 100644 --- a/src/Protocol/Protocol.h +++ b/src/Protocol/Protocol.h @@ -216,7 +216,7 @@ protected: { // A 32-bit integer can be encoded by at most 5 bytes: unsigned char b[5]; - int idx = 0; + size_t idx = 0; do { b[idx] = (a_Value & 0x7f) | ((a_Value > 0x7f) ? 0x80 : 0x00); |