Ignore:
Timestamp:
Dec 13, 2014, 3:22:39 PM (6 years ago)
Author:
mikedld
Message:

Fix compilation on Windows

This should not affect non-Win32 platforms in any way.
As for Win32 (both MinGW and MSVC), this should hopefully allow for
unpatched compilation. Correct functioning is not yet guaranteed though.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/variant-test.c

    r14316 r14382  
    101101
    102102  /* string len is designed to overflow */
    103   n = tr_snprintf ((char*)buf, sizeof (buf), "%zu:boat", (size_t)(SIZE_MAX-2));
     103  n = tr_snprintf ((char*)buf, sizeof (buf), "%"TR_PRIuSIZE":boat", (size_t)(SIZE_MAX-2));
    104104  err = tr_bencParseStr (buf, buf+n, &end, &str, &len);
    105105  check_int_eq (EILSEQ, err);
Note: See TracChangeset for help on using the changeset viewer.