Skip to content

Commit

Permalink
Fix compiler error when using -Wconversion.
Browse files Browse the repository at this point in the history
/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;
  • Loading branch information
Jan Lindström committed Oct 10, 2019
1 parent c9cba59 commit cb3f856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wsrep/wsrep_gtid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit cb3f856

Please sign in to comment.