search for: long_min

Displaying 11 results from an estimated 11 matches for "long_min".

Did you mean: llong_min
2004 Jul 15
2
[LLVMdev] Constants.cpp:368: error: `INT8_MAX' undeclared(firstuse this function)
...value for (signed) short */ #define USHRT_MAX 0xffff /* max value for unsigned short */ #define INT_MIN (-2147483647-1) /* min value for (signed) int */ #define INT_MAX 2147483647 /* max value for (signed) int */ #define UINT_MAX 0xffffffff /* max value for unsigned int */ #define LONG_MIN (-2147483647L-1) /* minimum (signed) long */ #define LONG_MAX 2147483647L /* maximum (signed) long */ #define ULONG_MAX 0xffffffffUL /* maximum unsigned long */ #if defined(_ALL_SOURCE) \ || (__STDC__ - 0 == 0) && !defined(_POSIX_C_SOURCE) \ && !defined(_XOPEN_SOURC...
2009 May 02
1
integer ranges in R vs C and Java
Hello, I'm using R-2.9 and have a question about integer ranges. On C, (OS X platform), LONG_MIN and LONG_MAX(from limits.h) correspond to -2147483648(-2^31) and 2147483647 (2^31-1) In Java(1.4), Integer.MIN_VALUE and Integer.MAX_VALUE have the same values. On R, as.integer(2^31-1) is the maximum (without returning NA) but the lowest is -2147483647 (-2^31+1) > as.integer((-2)^31) [1] NA...
2004 Jul 14
0
[LLVMdev] Constants.cpp:368: error: `INT8_MAX' undeclared(firstuse this function)
...value for (signed) short */ #define USHRT_MAX 0xffff /* max value for unsigned short */ #define INT_MIN (-2147483647-1) /* min value for (signed) int */ #define INT_MAX 2147483647 /* max value for (signed) int */ #define UINT_MAX 0xffffffff /* max value for unsigned int */ #define LONG_MIN (-2147483647L-1) /* minimum (signed) long */ #define LONG_MAX 2147483647L /* maximum (signed) long */ #define ULONG_MAX 0xffffffffUL /* maximum unsigned long */ #if defined(_ALL_SOURCE) \ || (__STDC__ - 0 == 0) && !defined(_POSIX_C_SOURCE) \ && !defined(_XOPEN_SOURC...
2004 Jul 15
0
[LLVMdev] Constants.cpp:368: error: `INT8_MAX' undeclared(firstuse this function)
...#define USHRT_MAX 0xffff /* max value for unsigned short */ > > #define INT_MIN (-2147483647-1) /* min value for (signed) int */ > #define INT_MAX 2147483647 /* max value for (signed) int */ > #define UINT_MAX 0xffffffff /* max value for unsigned int */ > > #define LONG_MIN (-2147483647L-1) /* minimum (signed) long */ > #define LONG_MAX 2147483647L /* maximum (signed) long */ > #define ULONG_MAX 0xffffffffUL /* maximum unsigned long */ > > #if defined(_ALL_SOURCE) \ > || (__STDC__ - 0 == 0) && !defined(_POSIX_C_SOURCE) \ > &am...
2020 Aug 30
4
[Bug 3206] New: sftp client(32bit) chown command does not support uid >LONG_MAX
.../* Get numeric arg (mandatory) */ if (argc - optidx < 1) goto need_num_arg; errno = 0; l = strtol(argv[optidx], &cp2, base); if (cp2 == argv[optidx] || *cp2 != '\0' || ((l == LONG_MIN || l == LONG_MAX) && errno == ERANGE) || l < 0) { need_num_arg: error("You must supply a numeric argument " "to the %s command.", cmd); return -1; } -- Y...
2014 Dec 19
2
Replace atoi and atol with strtol strtoul:Need Help
On Sat, Dec 20, 2014 at 12:42:08AM +0530, Priyank Bhatt wrote: > As James said I am attaching two file *date.cc* and *datematchdecider.cc* Please send patches, not complete source files: http://trac.xapian.org/browser/git/xapian-core/HACKING#L1176 Patches are much smaller, and don't require the reviewer to work out the exact version of the source file you started from. Cheers, Olly
2019 Sep 21
2
[PATCH nbdkit] server: public: Add nbdkit_parse_* functions for safely parsing integers.
...AD, 0); + + /* Test nbdkit_parse_long. */ + PARSE (long, "%ld", "0", OK, 0); + assert (snprintf (s, sizeof s, "%" PRIi64, (int64_t) LONG_MAX) != -1); + PARSE (long, "%ld", s, OK, LONG_MAX); + assert (snprintf (s, sizeof s, "%" PRIi64, (int64_t) LONG_MIN) != -1); + PARSE (long, "%ld", s, OK, LONG_MIN); + PARSE (long, "%ld", "999999999999999999999999", BAD, 0); + PARSE (long, "%ld", "-999999999999999999999999", BAD, 0); + + /* Test nbdkit_parse_unsigned_long. */ + typedef unsigned long unsigned_...
2014 Dec 19
2
Replace atoi and atol with strtol strtoul:Need Help
On Thu, Dec 18, 2014 at 11:38:42PM +0000, James Aylett wrote: > Collapsing is done using a valueno (you can tell because collapse_key > is of type Xapian::valueno), which is a 32 bit unsigned integer (see > here: > https://getting-started-with-xapian.readthedocs.org/en/latest/concepts/indexing/values.html). > For 32 bit unsigned you need unsigned long. Xapian::valueno is actually a
2019 Sep 23
0
Re: [PATCH nbdkit] server: public: Add nbdkit_parse_* functions for safely parsing integers.
...nbdkit_parse_long. */ > + PARSE (long, "%ld", "0", OK, 0); > + assert (snprintf (s, sizeof s, "%" PRIi64, (int64_t) LONG_MAX) != -1); > + PARSE (long, "%ld", s, OK, LONG_MAX); > + assert (snprintf (s, sizeof s, "%" PRIi64, (int64_t) LONG_MIN) != -1); > + PARSE (long, "%ld", s, OK, LONG_MIN); > + PARSE (long, "%ld", "999999999999999999999999", BAD, 0); > + PARSE (long, "%ld", "-999999999999999999999999", BAD, 0); snprintf() side effects inside assert(). Tsk tsk - the test wi...
2019 Sep 23
2
Re: [PATCH nbdkit] server: public: Add nbdkit_parse_* functions for safely parsing integers.
...*/ > > + PARSE (long, "%ld", "0", OK, 0); > > + assert (snprintf (s, sizeof s, "%" PRIi64, (int64_t) LONG_MAX) != -1); > > + PARSE (long, "%ld", s, OK, LONG_MAX); > > + assert (snprintf (s, sizeof s, "%" PRIi64, (int64_t) LONG_MIN) != -1); > > + PARSE (long, "%ld", s, OK, LONG_MIN); > > + PARSE (long, "%ld", "999999999999999999999999", BAD, 0); > > + PARSE (long, "%ld", "-999999999999999999999999", BAD, 0); > > snprintf() side effects inside assert...
2008 Apr 02
10
[PATCH 0/62] Ocfs2 updates for 2.6.26-rc1
The following series of patches comprises the bulk of our outstanding changes for Ocfs2. Aside from the usual set of cleanups and fixes that were inappropriate for 2.6.25, there are a few highlights: The '/sys/o2cb' directory has been moved to '/sys/fs/o2cb'. The new location meshes better with modern sysfs layout. A symbolic link has been placed in the old location so as to