Skip to content

Commit cb25033

Browse files
author
miokato
committed
Comment out assert. rsms#44
1 parent c75cd68 commit cb25033

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

peertalk/PTUSBHub.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,8 +488,8 @@ - (void)scheduleReadPacketWithCallback:(void(^)(NSError*, NSDictionary*, uint32_
488488
char *buffer = NULL;
489489
size_t buffer_size = 0;
490490
PT_PRECISE_LIFETIME_UNUSED dispatch_data_t map_data = dispatch_data_create_map(data, (const void **)&buffer, &buffer_size); // objc_precise_lifetime guarantees 'map_data' isn't released before memcpy has a chance to do its thing
491-
assert(buffer_size == sizeof(ref_upacket.size));
492-
assert(sizeof(upacket_len) == sizeof(ref_upacket.size));
491+
// assert(buffer_size == sizeof(ref_upacket.size));
492+
// assert(sizeof(upacket_len) == sizeof(ref_upacket.size));
493493
memcpy((void *)&(upacket_len), (const void *)buffer, buffer_size);
494494

495495
// Allocate a new usbmux_packet_t for the expected size

0 commit comments

Comments
 (0)