From 7c861cac534801dd7938f07eeccd3680c84d3f30 Mon Sep 17 00:00:00 2001 From: Tim Prouty Date: Thu, 15 Jan 2009 10:51:57 -0800 Subject: 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. --- pidl/lib/Parse/Pidl/NDR.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'pidl/lib/Parse/Pidl/NDR.pm') diff --git a/pidl/lib/Parse/Pidl/NDR.pm b/pidl/lib/Parse/Pidl/NDR.pm index 5ee26d16b6..89632437c1 100644 --- a/pidl/lib/Parse/Pidl/NDR.pm +++ b/pidl/lib/Parse/Pidl/NDR.pm @@ -921,6 +921,7 @@ my %property_list = ( # array "range" => ["ELEMENT"], + "max" => ["ELEMENT"], "size_is" => ["ELEMENT"], "string" => ["ELEMENT"], "noheader" => ["ELEMENT"], -- cgit