Bug #983 » Make_GCC_4.8.1-4_Happy.diff
| src/tags_int.hpp (working copy) | ||
|---|---|---|
| 184 | 184 |
tag values to human readable labels. |
| 185 | 185 |
*/ |
| 186 | 186 |
struct TagDetails {
|
| 187 |
long val_; //!< Tag value
|
|
| 187 |
int64_t val_; //!< Tag value
|
|
| 188 | 188 |
const char* label_; //!< Translation of the tag value |
| 189 | 189 | |
| 190 | 190 |
//! Comparison operator for use with the find template |
| src/localtime.c (working copy) | ||
|---|---|---|
| 1119 | 1119 |
int * number; |
| 1120 | 1120 |
int delta; |
| 1121 | 1121 |
{
|
| 1122 |
int number0; |
|
| 1123 | ||
| 1124 |
number0 = *number; |
|
| 1122 |
int i = *number; |
|
| 1123 |
/* |
|
| 1124 |
** Copied from: https://www.ietf.org/timezones/code/localtime.c |
|
| 1125 |
** If i >= 0 there can only be overflow if i + delta > INT_MAX |
|
| 1126 |
** or if delta > INT_MAX - i; given i >= 0, INT_MAX - i cannot overflow. |
|
| 1127 |
** If i < 0 there can only be overflow if i + delta < INT_MIN |
|
| 1128 |
** or if delta < INT_MIN - i; given i < 0, INT_MIN - i cannot overflow. |
|
| 1129 |
*/ |
|
| 1130 |
if ((i >= 0) ? (delta > INT_MAX - i) : (delta < INT_MIN - i)) |
|
| 1131 |
return TRUE; |
|
| 1125 | 1132 |
*number += delta; |
| 1126 |
return (*number < number0) != (delta < 0);
|
|
| 1133 |
return FALSE;
|
|
| 1127 | 1134 |
} |
| 1128 | 1135 | |
| 1129 | 1136 |
static int |
| src/basicio.cpp (working copy) | ||
|---|---|---|
| 319 | 319 |
if (hKernel) {
|
| 320 | 320 |
GetFileInformationByHandle_t pfcn_GetFileInformationByHandle = (GetFileInformationByHandle_t)GetProcAddress(hKernel, "GetFileInformationByHandle"); |
| 321 | 321 |
if (pfcn_GetFileInformationByHandle) {
|
| 322 |
BY_HANDLE_FILE_INFORMATION fi = {0};
|
|
| 322 |
BY_HANDLE_FILE_INFORMATION fi; |
|
| 323 | 323 |
if (pfcn_GetFileInformationByHandle(hFd, &fi)) {
|
| 324 | 324 |
nlink = fi.nNumberOfLinks; |
| 325 | 325 |
} |
- « Previous
- 1
- 2
- Next »