Skip to contentSkip to conversation

master - coverity: keep expression using 64bit

PATCH Zdenek Kabelac 1 participant 1 message Apr 22, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=d12ba022c8082de2d804010992c6ee1076b9f571
Commit:        d12ba022c8082de2d804010992c6ee1076b9f571
Parent:        d564d9f39c73bdbb32413256586991993ad869ef
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Apr 22 14:05:03 2016 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Apr 22 14:15:36 2016 +0200

coverity: keep expression using 64bit

Use 64bit input to remain with whole evaluation in 64bit.

---
 daemons/lvmlockd/lvmlockd-sanlock.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
daemons/lvmlockd/lvmlockd-sanlock.c +1 -1
index c6534d8..b47c7f0 100644
@@ -206,7 +206,7 @@ int lm_data_size_sanlock(void)
 #define VG_LOCK_BEGIN UINT64_C(66)
 #define LV_LOCK_BEGIN UINT64_C(67)
 
-static unsigned int daemon_test_lv_count;
+static uint64_t daemon_test_lv_count;
 
 static int lock_lv_name_from_args(char *vg_args, char *lock_lv_name)
 {