mirror of
https://github.com/corda/corda.git
synced 2025-04-26 13:59:56 +00:00
fix mode=debug build for recent OpenJDK versions
This commit is contained in:
parent
fa8ba2afc8
commit
06f7746dfd
@ -2238,7 +2238,7 @@ makeString(Thread* t, const char* format, ...);
|
|||||||
inline unsigned
|
inline unsigned
|
||||||
stringLength(Thread* t, object string)
|
stringLength(Thread* t, object string)
|
||||||
{
|
{
|
||||||
return arrayLength(t, stringData(t, string));
|
return charArrayLength(t, stringData(t, string));
|
||||||
}
|
}
|
||||||
|
|
||||||
inline unsigned
|
inline unsigned
|
||||||
@ -2250,7 +2250,7 @@ stringOffset(Thread*, object)
|
|||||||
inline object
|
inline object
|
||||||
makeString(Thread* t, object data, unsigned offset, unsigned length, unsigned)
|
makeString(Thread* t, object data, unsigned offset, unsigned length, unsigned)
|
||||||
{
|
{
|
||||||
if (offset == 0 and length == arrayLength(t, data)) {
|
if (offset == 0 and length == charArrayLength(t, data)) {
|
||||||
return makeString(t, data, 0, 0);
|
return makeString(t, data, 0, 0);
|
||||||
} else {
|
} else {
|
||||||
PROTECT(t, data);
|
PROTECT(t, data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user