Fixing the build break/unsigned to signed warning.
authorTarek Mahmoud Sayed <tarekms@microsoft.com>
Fri, 8 Jul 2016 18:47:55 +0000 (11:47 -0700)
committerTarek Mahmoud Sayed <tarekms@microsoft.com>
Fri, 8 Jul 2016 18:47:55 +0000 (11:47 -0700)
This checkin onbehalf of Tijoytk

[tfs-changeset: 1616784]

src/vm/fieldmarshaler.cpp

index a1904e0..0de71b5 100644 (file)
@@ -3375,7 +3375,7 @@ VOID FieldMarshaler_FixedStringAnsi::UpdateNativeImpl(OBJECTREF* pCLRValue, LPVO
         // character, but for multibyte chars nc>= m_numchar check won't truncate since GetStringLength
         // gives number of characters but not the actual number of bytes. For such cases need to make 
         // sure that we dont write one past the buffer.
-        if (cbwritten == m_numchar)
+        if (cbwritten == (int) m_numchar)
             --cbwritten;
 
         ((CHAR*)pNativeValue)[cbwritten] = '\0';