Thanks for your replays. I try to improve this series and add under and overflow checks. To improve handling Platform specific stuff I add a macro for conversion from a string to a size_t. Best regards Sören Krecker Sören Krecker (4): add-patch: Fix type missmatch rom msvc date.c: Fix type missmatch warings from msvc apply.c : Fix type missmatch warings from msvc commit.c: Fix type missmatch warings from msvc add-patch.c | 53 +++++++++++++++++++++++++++-------------------- apply.c | 37 +++++++++++++++++---------------- apply.h | 6 +++--- commit.c | 12 +++++------ date.c | 6 +++--- gettext.h | 2 +- git-compat-util.h | 6 ++++++ 7 files changed, 69 insertions(+), 53 deletions(-) base-commit: 1b4e9a5f8b5f048972c21fe8acafe0404096f694 -- 2.39.5