Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-887

Incorrect cast for PRId64

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.2-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      While merging from master I noticed this warning:

      src/mongoc/mongoc-stream.c: In function '_mongoc_stream_writev_full':
      src/mongoc/mongoc-stream.c:493:23: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'long long int' [-Wformat=]
      (long long)r, (unsigned long long)total_bytes, timeout_msec);
      ^
      src/mongoc/mongoc-stream.c:493:23: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'long long unsigned int' [-Wformat=]

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: