mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 15:43:32 +01:00
Fix a compiler warning on windows when sizeof(long)==sizeof(int)
This commit is contained in:
parent
6bc052365a
commit
44cbd00dfa
@ -3273,8 +3273,10 @@ tor_vsscanf(const char *buf, const char *pattern, va_list ap)
|
||||
*out = lng;
|
||||
} else {
|
||||
int *out = va_arg(ap, int *);
|
||||
#if LONG_MAX > INT_MAX
|
||||
if (lng < INT_MIN || lng > INT_MAX)
|
||||
return n_matched;
|
||||
#endif
|
||||
*out = (int)lng;
|
||||
}
|
||||
++pattern;
|
||||
|
Loading…
Reference in New Issue
Block a user