Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
systemd-mini.1472
0002-util-avoid-non-portable-__WORDSIZE.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-util-avoid-non-portable-__WORDSIZE.patch of Package systemd-mini.1472
Based on 8507eb20b64010b26f23822cbf442bb0bf96511c Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing <systemd@esmil.dk> Date: Fri, 19 Sep 2014 20:26:53 +0200 Subject: [PATCH] util: avoid non-portable __WORDSIZE Lets not unnecessarily rely on __WORDSIZE, which is not clearly specified by any spec. Use explicit size comparisons if we're not interested in the WORDSIZE, anyway. (David: adjust commit message to explain why we do this) --- src/shared/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- src/shared/util.h +++ src/shared/util.h 2014-09-24 06:58:11.378235669 +0000 @@ -166,7 +166,7 @@ int safe_atolli(const char *s, long long int safe_atod(const char *s, double *ret_d); -#if __WORDSIZE == 32 +#if LONG_MAX == INT_MAX static inline int safe_atolu(const char *s, unsigned long *ret_u) { assert_cc(sizeof(unsigned long) == sizeof(unsigned)); return safe_atou(s, (unsigned*) ret_u);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor