summaryrefslogtreecommitdiffstats
path: root/libtommath/bn_error.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtommath/bn_error.c')
-rw-r--r--libtommath/bn_error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libtommath/bn_error.c b/libtommath/bn_error.c
index a51d712..7e816bf 100644
--- a/libtommath/bn_error.c
+++ b/libtommath/bn_error.c
@@ -27,10 +27,10 @@ static const struct {
/* return a char * string for a given code */
const char *mp_error_to_string(int code)
{
- int x;
+ size_t x;
/* scan the lookup table for the given message */
- for (x = 0; x < (int)(sizeof(msgs) / sizeof(msgs[0])); x++) {
+ for (x = 0; x < (sizeof(msgs) / sizeof(msgs[0])); x++) {
if (msgs[x].code == code) {
return msgs[x].msg;
}