diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-07-17 13:55:04 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-07-17 13:55:04 -0400 |
commit | c138c9a2be868c4d8bad4e6ae5637205f1bdcf0f (patch) | |
tree | 43baab11abc049adf6c1d266a444fdd10c4936ee /src/test/test_util_format.c | |
parent | 9932544297e02dc4f79d70317f214bcbb2dd8e9a (diff) | |
parent | fbae15a856fccdecfb19ff80229b584026ae2def (diff) | |
download | tor-c138c9a2be868c4d8bad4e6ae5637205f1bdcf0f.tar.gz tor-c138c9a2be868c4d8bad4e6ae5637205f1bdcf0f.zip |
Merge branch 'maint-0.2.8'
Diffstat (limited to 'src/test/test_util_format.c')
-rw-r--r-- | src/test/test_util_format.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/test_util_format.c b/src/test/test_util_format.c index f3dcd1184c..63a668238c 100644 --- a/src/test/test_util_format.c +++ b/src/test/test_util_format.c @@ -106,10 +106,10 @@ test_util_format_base64_encode(void *ignored) for (i = 0;i<50;i++) { src[i] = 0; } - src[50] = 255; - src[51] = 255; - src[52] = 255; - src[53] = 255; + src[50] = (char)255; + src[51] = (char)255; + src[52] = (char)255; + src[53] = (char)255; res = base64_encode(dst, 1000, src, 54, BASE64_ENCODE_MULTILINE); tt_int_op(res, OP_EQ, 74); |