Skip to content

Commit da00de6

Browse files
committed
[GR-24961] unicodedata.lookup(name) error on darwin.
1 parent 0a2672e commit da00de6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/common/CExtParseArgumentsNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ static ParserState doCString(ParserState stateIn, Object kwds, @SuppressWarnings
430430
// TODO(fa) we could use CStringWrapper to do the copying lazily
431431
writeOutVarNode.writePointer(varargs, state.outIndex, asCharPointerNode.execute(arg));
432432
state = state.incrementOutIndex();
433-
writeOutVarNode.writeInt32(varargs, state.outIndex, stringLenNode.execute(arg));
433+
writeOutVarNode.writeInt64(varargs, state.outIndex, (long) stringLenNode.execute(arg));
434434
} else {
435435
throw raise(raiseNode, TypeError, ErrorMessages.EXPECTED_S_GOT_P, z ? "str or None" : "str", arg);
436436
}

0 commit comments

Comments
 (0)