When subtracting the string lengths the result is a ptrdiff_t which is signed. When we assign that to the vec->len field we do an implicit conversion to unsigned. This makes that conversion explicit.