diff options
author | Daouda Lo <daouda@mandriva.com> | 2003-06-23 14:37:15 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2003-06-23 14:37:15 +0000 |
commit | 04ace02ba1d1c16ecad2727d9c8e7c2ff5582d33 (patch) | |
tree | 25d35631204a8e569e7bdd5196dbd3842e3ff6f0 /USER | |
parent | feb8f9e83fd5bddb1d56c92c00428051dbe088d7 (diff) | |
download | userdrake-04ace02ba1d1c16ecad2727d9c8e7c2ff5582d33.tar userdrake-04ace02ba1d1c16ecad2727d9c8e7c2ff5582d33.tar.gz userdrake-04ace02ba1d1c16ecad2727d9c8e7c2ff5582d33.tar.bz2 userdrake-04ace02ba1d1c16ecad2727d9c8e7c2ff5582d33.tar.xz userdrake-04ace02ba1d1c16ecad2727d9c8e7c2ff5582d33.zip |
- Correct bug from converting NV to IV (Warly)
Diffstat (limited to 'USER')
-rw-r--r-- | USER/USER.xs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/USER/USER.xs b/USER/USER.xs index 01c6be0..ceadda3 100644 --- a/USER/USER.xs +++ b/USER/USER.xs @@ -1327,13 +1327,13 @@ Ent_ShadowExpire(self, ssv) XPUSHs(sv_2mortal(newSViv(atol(g_value_get_string(value))))); } } - } else { - memset(&val, 0, sizeof(val)); - g_value_init(&val, G_TYPE_LONG); - g_value_set_long(&val, (long)SvIV( ssv )); - lu_ent_clear(self, LU_SHADOWEXPIRE); - lu_ent_add(self, LU_SHADOWEXPIRE, &val); } + } else if (SvNOK(ssv)) { + memset(&val, 0, sizeof(val)); + g_value_init(&val, G_TYPE_LONG); + g_value_set_long(&val, (long)SvNV( ssv )); + lu_ent_clear(self, LU_SHADOWEXPIRE); + lu_ent_add(self, LU_SHADOWEXPIRE, &val); } else { warn("XS_ShadowExpire: Cannot make operation on LU_SHADOWEXPIRE attribute"); } |