Merge pull request #227 from Xiretza/fpga-list-int

fix(part.hpp): use uint32_t instead of int for fpga_list index
This commit is contained in:
Gwenhael Goavec-Merou 2022-05-14 17:56:40 +02:00 committed by GitHub
commit f1c9bb1648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
#ifndef PART_HPP
#define PART_HPP
#include <cstdint>
#include <map>
#include <string>
@ -17,7 +18,7 @@ typedef struct {
} fpga_model;
/* Highest nibble (version) must always be set to 0 */
static std::map <int, fpga_model> fpga_list = {
static std::map <uint32_t, fpga_model> fpga_list = {
{0x0a014c35, {"anlogic", "eagle s20", "EG4S20BG256", 8}},
{0x00004c37, {"anlogic", "elf2", "EF2M45", 8}},