| Index: tools/json_to_struct/json_to_struct.py
|
| diff --git a/tools/json_to_struct/json_to_struct.py b/tools/json_to_struct/json_to_struct.py
|
| index 2e9c83c726fb23a28a232cfd24312efdac4b841f..831c739498d0f62f85467b02a272cb00f64aa905 100755
|
| --- a/tools/json_to_struct/json_to_struct.py
|
| +++ b/tools/json_to_struct/json_to_struct.py
|
| @@ -119,7 +119,7 @@ def _GenerateH(basepath, fileroot, head, namespace, schema, description):
|
| schema['type_name'], schema['schema']))
|
| f.write('\n')
|
|
|
| - for var_name, value in description.get('int_variables', []).items():
|
| + for var_name, value in description.get('int_variables', {}).items():
|
| f.write('extern const int %s;\n' % var_name)
|
| f.write('\n')
|
|
|
|
|