From 8f63ec7057834e4046622f7cf96ad765a2c38df8 Mon Sep 17 00:00:00 2001 From: Folkert van Heusden Date: Mon, 4 Nov 2024 10:02:17 +0100 Subject: [PATCH] compile fix for uC --- server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.cpp b/server.cpp index 48544c5..cf4d2e6 100644 --- a/server.cpp +++ b/server.cpp @@ -423,7 +423,7 @@ iscsi_fail_reason server::push_response(com_client *const cc, session *const ses DOLOG(logging::ll_debug, "server::push_response", cc->get_endpoint_name(), "SCSI: stream %u sectors starting at LBA %" PRIu64 ", iSCSI: %u", stream_parameters.n_sectors, stream_parameters.lba, reply_to.get_ExpDatLen()); #if defined(ARDUINO) - uint64_t buffer_n = std::max(MAX_DATA_SEGMENT_SIZE, get_free_heap_space() / 2); + uint64_t buffer_n = std::max((long unsigned)MAX_DATA_SEGMENT_SIZE, get_free_heap_space() / 2); #else uint64_t buffer_n = MAX_DATA_SEGMENT_SIZE; #endif