X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Flog.c;fp=src%2Flog.c;h=5635278db6a67d1946fee808de647cd95417745a;hb=9c15b9504ec4c7201376781234e5611215d120ee;hp=86f47b9acfa7c3c77362d587fce4cc73bfa8579b;hpb=ac74a6366226ec3e3cc048486b9ff085a074753a;p=i3%2Fi3 diff --git a/src/log.c b/src/log.c index 86f47b9a..5635278d 100644 --- a/src/log.c +++ b/src/log.c @@ -250,7 +250,7 @@ static void vlog(const bool print, const char *fmt, va_list args) { /* If there is no space for the current message in the ringbuffer, we * need to wrap and write to the beginning again. */ - if (len >= (logbuffer_size - (logwalk - logbuffer))) { + if (len >= (size_t)(logbuffer_size - (logwalk - logbuffer))) { loglastwrap = logwalk; logwalk = logbuffer + sizeof(i3_shmlog_header); store_log_markers();