diff options
author | Jan Lindström <jan.lindstrom@mariadb.com> | 2019-10-10 10:36:11 +0300 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2019-10-10 10:36:11 +0300 |
commit | cb3f856ecdcaa2f63f51762f36226869ff08738f (patch) | |
tree | 561ce697d724ce91930623afbfa3ecde9e0c5d44 /wsrep | |
parent | c9cba59749e1b5a39a9e3a0a5b8bd762507245f9 (diff) | |
download | mariadb-git-cb3f856ecdcaa2f63f51762f36226869ff08738f.tar.gz |
Fix compiler error when using -Wconversion.
/mariadb/10.3/wsrep/wsrep_gtid.c:45:26: error: conversion from 'long int' to 'unsigned int' may change value [-Werror=conversion]
45 | offset = endptr - str;
Diffstat (limited to 'wsrep')
-rw-r--r-- | wsrep/wsrep_gtid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wsrep/wsrep_gtid.c b/wsrep/wsrep_gtid.c index bf5cab06585..fc87275f4ff 100644 --- a/wsrep/wsrep_gtid.c +++ b/wsrep/wsrep_gtid.c @@ -42,7 +42,7 @@ wsrep_gtid_scan(const char* str, size_t str_len, wsrep_gtid_t* gtid) gtid->seqno = strtoll(str + offset, &endptr, 0); if (errno == 0) { - offset = endptr - str; + offset = (unsigned int)(endptr - str); return offset; } } |