~ubuntu-branches/ubuntu/quantal/curl/quantal-proposed

« back to all changes in this revision

Viewing changes to lib/warnless.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-05-28 12:21:13 UTC
  • mfrom: (3.4.29 sid)
  • Revision ID: package-import@ubuntu.com-20120528122113-i5f42lajprljoudn
Tags: 7.26.0-1ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Drop dependencies not in main:
    + Build-Depends: Drop stunnel4 and libssh2-1-dev.
    + Drop libssh2-1-dev from binary package Depends.
  - Add new libcurl3-udeb package.
  - Add new curl-udeb package.
* Adjust udeb configure flags handling to something easier to merge in
  future.

Show diffs side-by-side

added added

removed removed

Lines of Context:
159
159
}
160
160
 
161
161
/*
 
162
** unsigned long to signed int
 
163
*/
 
164
 
 
165
int curlx_ultosi(unsigned long ulnum)
 
166
{
 
167
#ifdef __INTEL_COMPILER
 
168
#  pragma warning(push)
 
169
#  pragma warning(disable:810) /* conversion may lose significant bits */
 
170
#endif
 
171
 
 
172
  DEBUGASSERT(ulnum <= (unsigned long) CURL_MASK_SINT);
 
173
  return (int)(ulnum & (unsigned long) CURL_MASK_SINT);
 
174
 
 
175
#ifdef __INTEL_COMPILER
 
176
#  pragma warning(pop)
 
177
#endif
 
178
}
 
179
 
 
180
/*
162
181
** unsigned size_t to signed int
163
182
*/
164
183