From a98995aa4e71addd55484aa0115a1ab2208e493a Mon Sep 17 00:00:00 2001 From: Andrew Case Date: Tue, 18 Dec 2018 12:56:31 -0600 Subject: [PATCH] remove unnecesary calls to int() --- volatility/framework/symbols/mac/extensions/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/volatility/framework/symbols/mac/extensions/__init__.py b/volatility/framework/symbols/mac/extensions/__init__.py index e6489f66c..acf1ae357 100644 --- a/volatility/framework/symbols/mac/extensions/__init__.py +++ b/volatility/framework/symbols/mac/extensions/__init__.py @@ -115,7 +115,7 @@ class vnode(generic.GenericIntelProcess): self._do_calc_path(ret, vnodeobj.v_parent, vnodeobj.v_parent.v_name) def full_path(self): - if int(self.v_flag) & 0x000001 != 0 and int(self.v_mount) != 0 and int(self.v_mount.mnt_flag) & 0x00004000 != 0: + if self.v_flag & 0x000001 != 0 and self.v_mount != 0 and self.v_mount.mnt_flag & 0x00004000 != 0: ret = "/" else: elements = []