Skip to content

Commit 1583d34

Browse files
committed
fix bug in string serializer
1 parent bec6dda commit 1583d34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/ChainOperations/OperationSerializer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public static function serializeType($type, $value, $byteBuffer)
108108
//Writes a UTF8 encoded string prefixed 32bit base 128 variable-length integer.
109109
$strLength = strlen($value);
110110

111-
if ($strLength < 128) {
111+
if ($strLength <= 128) {
112112
$byteBuffer->writeInt8($strLength);
113113
} else {
114114

0 commit comments

Comments
 (0)