[clang-tidy] numeric literals to uppercase

Found with hicpp-uppercase-literal-suffix

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-04-02 19:35:37 -07:00 committed by Fabian Homborg
parent 194fa4a548
commit 312b575424
4 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
---
Checks: 'clang-diagnostic-*,clang-analyzer-*,cert-*,performance-*,portability-*,modernize-use-auto,modernize-loop-convert,modernize-use-bool-literals,modernize-use-using'
Checks: 'clang-diagnostic-*,clang-analyzer-*,cert-*,performance-*,portability-*,modernize-use-auto,modernize-loop-convert,modernize-use-bool-literals,modernize-use-using,hicpp-uppercase-literal-suffix'
WarningsAsErrors: ''
HeaderFilterRegex: ''
AnalyzeTemporaryDtors: false

View file

@ -24,7 +24,7 @@ void sanity_lose() {
void validate_pointer(const void *ptr, const wchar_t *err, int null_ok) {
// Test if the pointer data crosses a segment boundary.
if ((0x00000003l & (intptr_t)ptr) != 0) {
if ((0x00000003L & (intptr_t)ptr) != 0) {
FLOGF(error, _(L"The pointer '%ls' is invalid"), err);
sanity_lose();
}

View file

@ -153,5 +153,5 @@ int wcsfilecmp_glob(const wchar_t *a, const wchar_t *b) {
long long get_time() {
struct timeval time_struct;
gettimeofday(&time_struct, nullptr);
return 1000000ll * time_struct.tv_sec + time_struct.tv_usec;
return 1000000LL * time_struct.tv_sec + time_struct.tv_usec;
}

View file

@ -268,7 +268,7 @@ int fd_check_is_remote(int fd) {
switch ((unsigned int)buf.f_type) {
case 0x6969: // NFS_SUPER_MAGIC
case 0x517B: // SMB_SUPER_MAGIC
case 0xFF534D42u: // CIFS_MAGIC_NUMBER
case 0xFF534D42U: // CIFS_MAGIC_NUMBER
return 1;
default:
// Other FSes are assumed local.