diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/scripting/python/samba/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/common.py b/source4/scripting/python/samba/common.py index 867f44a116..5a9fae1c92 100644 --- a/source4/scripting/python/samba/common.py +++ b/source4/scripting/python/samba/common.py @@ -52,6 +52,6 @@ def confirm(msg, forced = False, allow_all=False): def normalise_int32(ivalue): '''normalise a ldap integer to signed 32 bit''' - if int(ivalue) & 0x80000000: + if int(ivalue) & 0x80000000 and int(ivalue) > 0: return str(int(ivalue) - 0x100000000) return str(ivalue) |