Skip to content

Commit c91c3e5

Browse files
committed
Adjust guard to specific PBytes type
1 parent 128bead commit c91c3e5

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/common/BufferStorageNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ static void packChar(Node inliningTarget, @SuppressWarnings("unused") BufferForm
319319
bufferLib.writeByte(buffer, offset, value);
320320
}
321321

322-
@Specialization(guards = {"format == CHAR", "!isBytes(object)"})
322+
@Specialization(guards = {"format == CHAR", "!isPBytes(object)"})
323323
@SuppressWarnings("unused")
324324
static void packChar(Node inliningTarget, BufferFormat format, Object object, Object buffer, int offset,
325325
@Shared @Cached PRaiseNode.Lazy raiseNode) {

0 commit comments

Comments
 (0)