diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-01-05 14:25:21 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:36:51 -0500 |
commit | 306dc32687e68dbf388187ec927444fb4a139158 (patch) | |
tree | dc83703cc75e6bb3ec6169cd759078088edb8895 /source4/pidl/lib | |
parent | 362d4b14aecb32aac5c7c4f6beb3b9a979bf9d5a (diff) | |
download | samba-306dc32687e68dbf388187ec927444fb4a139158.tar.gz samba-306dc32687e68dbf388187ec927444fb4a139158.tar.bz2 samba-306dc32687e68dbf388187ec927444fb4a139158.zip |
r20545: Fix is_constant().
(This used to be commit ae9b0895e8b7fd98335ece82aae3e391b94d2ec9)
Diffstat (limited to 'source4/pidl/lib')
-rw-r--r-- | source4/pidl/lib/Parse/Pidl/Util.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Util.pm b/source4/pidl/lib/Parse/Pidl/Util.pm index f1a97693a7..064862b7c5 100644 --- a/source4/pidl/lib/Parse/Pidl/Util.pm +++ b/source4/pidl/lib/Parse/Pidl/Util.pm @@ -54,9 +54,8 @@ sub property_matches($$$) sub is_constant($) { my $s = shift; - if (defined $s && $s =~ /^\d$/) { - return 1; - } + return 1 if (defined $s && $s =~ /^\d+$/); + return 1 if (defined $s && $s =~ /^0x[0-9A-Fa-f]+$/); return 0; } |