Index: /trunk/src/VBox/Main/src-server/VRDEServerImpl.cpp
===================================================================
--- /trunk/src/VBox/Main/src-server/VRDEServerImpl.cpp	(revision 52958)
+++ /trunk/src/VBox/Main/src-server/VRDEServerImpl.cpp	(revision 52959)
@@ -293,5 +293,5 @@
      *       digit.
      */
-    int cch = pszEnd - pszStart;
+    size_t cch = pszEnd - pszStart;
     if (cch > 0 && cch <= 5) /* Port is up to 5 decimal digits. */
     {
Index: /trunk/src/VBox/Main/xml/Settings.cpp
===================================================================
--- /trunk/src/VBox/Main/xml/Settings.cpp	(revision 52958)
+++ /trunk/src/VBox/Main/xml/Settings.cpp	(revision 52959)
@@ -1602,5 +1602,5 @@
         pelmThis->setAttribute("enabled", (d.fEnabled) ? 1 : 0);        // too bad we chose 1 vs. 0 here
         /* We assume that if there're only 1 element it means that */
-        int cOpt = d.GlobalDhcpOptions.size();
+        size_t cOpt = d.GlobalDhcpOptions.size();
         /* We don't want duplicate validation check of networkMask here*/
         if (   (   itOpt == d.GlobalDhcpOptions.end()
