--- old/hotspot/agent/src/share/native/sadis.c 2015-12-16 21:11:16.169735236 +0100 +++ new/hotspot/agent/src/share/native/sadis.c 2015-12-16 21:11:16.057735234 +0100 @@ -93,7 +93,7 @@ { /* C runtime error that has no corresponding DOS error code */ strerror_s(buf, len, errno); - return strlen(buf); + return (int)strlen(buf); } return 0; }