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

curl / curl / 5703 / 7
37%
master: 37%

Build:
DEFAULT BRANCH: master
Ran 03 Jul 2017 12:19PM UTC
Files 336
Run time 14s
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 11:54AM UTC coverage: 74.011% (+0.008%) from 74.003%
BUILD_TYPE=coverage

Pull #1617

travis-ci

web-flow
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.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Pull Request #1617: gtls: fix build when sizeof(long) < sizeof(void *)

18673 of 25230 relevant lines covered (74.01%)

42779.46 hits per line

Source Files on job 5703.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 5703
  • Travis Job 5703.7
  • 932a94d9 on github
  • Prev Job for BUILD_TYPE=coverage on master (#5699.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