[settings] Extend numerical setting tags to 64 bits

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2017-05-22 13:54:13 +01:00
parent 2f12690455
commit ee9897fe64
3 changed files with 26 additions and 18 deletions
+2 -2
View File
@@ -1478,9 +1478,9 @@ struct setting * find_setting ( const char *name ) {
* @v name Name
* @ret tag Tag number, or 0 if not a valid number
*/
static unsigned long parse_setting_tag ( const char *name ) {
static uint64_t parse_setting_tag ( const char *name ) {
char *tmp = ( ( char * ) name );
unsigned long tag = 0;
uint64_t tag = 0;
while ( 1 ) {
tag = ( ( tag << 8 ) | strtoul ( tmp, &tmp, 0 ) );