• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

curl / curl / 5704 / 7
37%
master: 37%

Build:
DEFAULT BRANCH: master
Ran 03 Jul 2017 02:08PM UTC
Files 336
Run time 13s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Jul 2017 01:45PM UTC coverage: 74.023% (+0.02%) from 74.003%
BUILD_TYPE=coverage

push

travis-ci

bagder
gtls: fix build when sizeof(long) < sizeof(void *)

- Change gnutls pointer/int macros to pointer/curl_socket_t.
  Prior to this change they used long type as well.

The size of the `long` data type can be shorter than that of pointer
types. This is the case most notably on Windows.

If C99 were acceptable, we could simply use `intptr_t` here. But we
want to retain C89 compatibility.

Simply use the trick of performing pointer arithmetic with the NULL
pointer: to convert an integer `i` to a pointer, simply take the
address of the `i`th element of a hypothetical character array
starting at address NULL. To convert back, simply cast the pointer
difference.

Thanks to Jay Satiro for the initial modification to use curl_socket_t
instead of int/long.

Closes #1617

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

18676 of 25230 relevant lines covered (74.02%)

42579.87 hits per line

Source Files on job 5704.7 (BUILD_TYPE=coverage)
  • Tree
  • List 0
  • Changed 47
  • Source Changed 2
  • Coverage Changed 46
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 5704
  • Travis Job 5704.7
  • c0cdc68c on github
  • Prev Job for BUILD_TYPE=coverage on master (#5699.7)
  • Next Job for BUILD_TYPE=coverage on master (#5708.7)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc