change to just int, compiler was mad

This commit is contained in:
blackjok3r
2018-09-24 15:43:43 +08:00
parent 91c3080146
commit 4dec9ceba8
2 changed files with 6 additions and 6 deletions

View File

@@ -107,7 +107,7 @@ int is_STAKED() {
return(STAKED); return(STAKED);
}; };
int STAKED_era(uint32_t timestamp) int STAKED_era(int timestamp)
{ {
int era; int era;
if (timestamp <= STAKED_NOTARIES_TIMESTAMP) if (timestamp <= STAKED_NOTARIES_TIMESTAMP)

View File

@@ -2,10 +2,10 @@
#ifndef NOTARIES_STAKED #ifndef NOTARIES_STAKED
#define NOTARIES_STAKED #define NOTARIES_STAKED
static const uint32_t STAKED_NOTARIES_TIMESTAMP = 1537780949; static const int STAKED_NOTARIES_TIMESTAMP = 1537780949;
static const uint32_t STAKED_NOTARIES_TIMESTAMP1 = 1537791749; static const int STAKED_NOTARIES_TIMESTAMP1 = 1537791749;
static const uint32_t STAKED_NOTARIES_TIMESTAMP2 = 1537802549; static const int STAKED_NOTARIES_TIMESTAMP2 = 1537802549;
static const uint32_t STAKED_NOTARIES_TIMESTAMP3 = 1537813349; static const int STAKED_NOTARIES_TIMESTAMP3 = 1537813349;
extern const char *notaries_STAKED[][2]; extern const char *notaries_STAKED[][2];
extern int num_notaries_STAKED; extern int num_notaries_STAKED;
@@ -20,6 +20,6 @@ extern const char *notaries_STAKED3[][2];
extern int num_notaries_STAKED3; extern int num_notaries_STAKED3;
int is_STAKED(); int is_STAKED();
int STAKED_era(uint32_t timestamp); int STAKED_era(int timestamp);
#endif #endif