diff options
author | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2008-03-04 01:12:17 +0000 |
---|---|---|
committer | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2008-03-04 01:12:17 +0000 |
commit | a603edef72e293330df701a66d6ead8aafe2f5b1 (patch) | |
tree | dac9bba6c28a1b2e932a8c4d07b8c620011b7be2 /ppdc/ppdc-source.cxx | |
parent | 568fa3faf16f8694653600d87955473941cc03c1 (diff) | |
download | cups-a603edef72e293330df701a66d6ead8aafe2f5b1.tar.gz |
Merge changes from CUPS 1.4svn-r7366.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@656 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'ppdc/ppdc-source.cxx')
-rw-r--r-- | ppdc/ppdc-source.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ppdc/ppdc-source.cxx b/ppdc/ppdc-source.cxx index c85dd6c60..e397f0abb 100644 --- a/ppdc/ppdc-source.cxx +++ b/ppdc/ppdc-source.cxx @@ -1183,8 +1183,8 @@ ppdcSource::get_installable(ppdcFile *fp) int // O - Integer value ppdcSource::get_integer(const char *v) // I - Value string { - int val; // Value - int temp; // Temporary value + long val; // Value + long temp; // Temporary value char *newv; // New value string pointer @@ -1199,7 +1199,7 @@ ppdcSource::get_integer(const char *v) // I - Value string if (*v || val == LONG_MIN) return (-1); else - return (val); + return ((int)val); } else if (*v == '(') { @@ -1220,7 +1220,7 @@ ppdcSource::get_integer(const char *v) // I - Value string } if (*v == ')') - return (val); + return ((int)val); else return (-1); } |