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

curl / curl / 5703
37%

Build:
DEFAULT BRANCH: master
Ran 03 Jul 2017 12:19PM UTC
Jobs 1
Files 336
Run time 16s
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

pending completion
5703

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

Coverage Regressions

Lines Coverage ∆ File
1
100.0
lib/url.c
1
100.0
lib/pop3.c
Jobs
ID Job ID Ran Files Coverage
7 5703.7 (BUILD_TYPE=coverage) 03 Jul 2017 12:19PM UTC 0
74.01
Travis Job 5703.7
Source Files on build 5703
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5703
  • Pull Request #1617
  • PR Base - master (#5699)
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