diff --git a/src/pld/lattice.c b/src/pld/lattice.c index 2075f4490..018cb2693 100644 --- a/src/pld/lattice.c +++ b/src/pld/lattice.c @@ -319,7 +319,7 @@ static int lattice_load_command(struct pld_device *pld_device, const char *filen return retval; } -int lattice_get_ipdbg_hub(int user_num, struct pld_device *pld_device, struct pld_ipdbg_hub *hub) +static int lattice_get_ipdbg_hub(int user_num, struct pld_device *pld_device, struct pld_ipdbg_hub *hub) { if (!pld_device) return ERROR_FAIL; diff --git a/src/pld/virtex2.c b/src/pld/virtex2.c index 5a8cf9d96..9b4a0979f 100644 --- a/src/pld/virtex2.c +++ b/src/pld/virtex2.c @@ -347,7 +347,7 @@ COMMAND_HANDLER(virtex2_handle_set_instuction_codes_command) COMMAND_PARSE_NUMBER(u64, CMD_ARGV[3], instr_codes.jprog_b); COMMAND_PARSE_NUMBER(u64, CMD_ARGV[4], instr_codes.jstart); COMMAND_PARSE_NUMBER(u64, CMD_ARGV[5], instr_codes.jshutdown); - instr_codes.bypass = 0xffffffffffffffff; + instr_codes.bypass = 0xffffffffffffffffULL; unsigned int num_user = CMD_ARGC - 6; for (unsigned int i = 0; i < num_user; ++i)