diff options
author | Tim Prouty <tprouty@samba.org> | 2009-01-15 10:51:57 -0800 |
---|---|---|
committer | Tim Prouty <tprouty@samba.org> | 2009-01-15 14:52:35 -0800 |
commit | 7c861cac534801dd7938f07eeccd3680c84d3f30 (patch) | |
tree | bc976ce4a0578496254f274e2eaf5e9fac46c3f6 /pidl/lib/Parse/Pidl/Compat.pm | |
parent | 3913d0a20547ad9c93255fdbc4fdf6629aa226b9 (diff) | |
download | samba-7c861cac534801dd7938f07eeccd3680c84d3f30.tar.gz samba-7c861cac534801dd7938f07eeccd3680c84d3f30.tar.bz2 samba-7c861cac534801dd7938f07eeccd3680c84d3f30.zip |
pidl: Add max property to be used instead of range for unsigned types.
Compilers complain about ranges starting at 0 for unsigned types,
since an unsigned type is never less than 0. The max property
implicitly makes 0 the lower bound when used with unsigned types.
Diffstat (limited to 'pidl/lib/Parse/Pidl/Compat.pm')
-rw-r--r-- | pidl/lib/Parse/Pidl/Compat.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pidl/lib/Parse/Pidl/Compat.pm b/pidl/lib/Parse/Pidl/Compat.pm index 1b49c439c4..58ba136591 100644 --- a/pidl/lib/Parse/Pidl/Compat.pm +++ b/pidl/lib/Parse/Pidl/Compat.pm @@ -67,6 +67,7 @@ my %supported_properties = ( # array "range" => ["ELEMENT"], + "max" => ["ELEMENT"], "size_is" => ["ELEMENT"], "string" => ["ELEMENT"], "noheader" => ["ELEMENT"], |