projects
/
platform
/
upstream
/
coreclr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64ab292
)
Fixing the build break/unsigned to signed warning.
author
Tarek Mahmoud Sayed
<tarekms@microsoft.com>
Fri, 8 Jul 2016 18:47:55 +0000
(11:47 -0700)
committer
Tarek 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
patch
|
blob
|
history
diff --git
a/src/vm/fieldmarshaler.cpp
b/src/vm/fieldmarshaler.cpp
index a1904e0864cef2d5a220b5676a594ce25ce3022d..0de71b592cd2d12477d2f0633cd49c8dec223d91 100644
(file)
--- a/
src/vm/fieldmarshaler.cpp
+++ b/
src/vm/fieldmarshaler.cpp
@@
-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';