Skip to content

Commit c3d1b2f

Browse files
committed
chore: tweak code
1 parent 8a5f3d4 commit c3d1b2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AVOS/Sources/Realtime/IM/Client/LCIMClient.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,7 @@ - (void)processPatchModify:(AVIMGenericCommand *)inCommand
13521352
LCIMMessagePatchedReason *patchedReason;
13531353
if (patchItem.hasPatchCode || patchItem.hasPatchReason) {
13541354
patchedReason = [LCIMMessagePatchedReason new];
1355-
patchedReason.code = (patchItem.hasPatchCode ? patchItem.patchCode : 0);
1355+
patchedReason.code = (NSInteger)(patchItem.hasPatchCode ? patchItem.patchCode : 0);
13561356
patchedReason.reason = (patchItem.hasPatchReason ? patchItem.patchReason : nil);
13571357
}
13581358
LCIMMessage *patchMessage = [conversation processPatchModified:patchItem];

0 commit comments

Comments
 (0)