Changeset 13580 for trunk/ippTools/src/regtool.c
- Timestamp:
- May 31, 2007, 4:40:05 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/regtool.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/regtool.c
r12347 r13580 23 23 24 24 #include <stdlib.h> 25 #include <stdint.h> 26 #include <math.h> 25 27 26 28 #include "pxtools.h" … … 422 424 423 425 bool status = false; 424 psS 8 code = psMetadataLookupS8(&status, config->args, "-code");426 psS16 code = psMetadataLookupS16(&status, config->args, "-code"); 425 427 if (!status) { 426 428 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -code"); 429 return false; 430 } 431 if (code == INT16_MAX) { 432 psError(PS_ERR_UNKNOWN, true, "-code is required"); 427 433 return false; 428 434 } … … 753 759 { 754 760 bool status = false; 755 psS 8 code = psMetadataLookupS8(&status, config->args, "-code");761 psS16 code = psMetadataLookupS16(&status, config->args, "-code"); 756 762 if (!status) { 757 763 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -code"); 764 return false; 765 } 766 if (code == INT16_MAX) { 767 psError(PS_ERR_UNKNOWN, true, "-code is required"); 758 768 return false; 759 769 } … … 946 956 947 957 // default 948 psS 8 code = psMetadataLookupS8(&status, config->args, "-code");958 psS16 code = psMetadataLookupS16(&status, config->args, "-code"); 949 959 if (!status) { 950 960 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -code"); … … 1099 1109 } 1100 1110 1101 psS 8 code = psMetadataLookupS8(&status, config->args, "-code");1111 psS16 code = psMetadataLookupS16(&status, config->args, "-code"); 1102 1112 if (!status) { 1103 1113 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -code");
Note:
See TracChangeset
for help on using the changeset viewer.
