소스 검색

Fix compilation error with recent newlib versions because random() return value doesn't match

teensy4-core
Alexander Shtuchkin 8 년 전
부모
커밋
ff83ba5546
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +1
    -1
      teensy3/WMath.cpp
  2. +1
    -1
      teensy3/WProgram.h

+ 1
- 1
teensy3/WMath.cpp 파일 보기

seed = newseed; seed = newseed;
} }


uint32_t random(void)
int32_t random(void)
{ {
int32_t hi, lo, x; int32_t hi, lo, x;



+ 1
- 1
teensy3/WProgram.h 파일 보기

void noTone(uint8_t pin); void noTone(uint8_t pin);


// WMath prototypes // WMath prototypes
uint32_t random(void);
int32_t random(void);
uint32_t random(uint32_t howbig); uint32_t random(uint32_t howbig);
int32_t random(int32_t howsmall, int32_t howbig); int32_t random(int32_t howsmall, int32_t howbig);
void randomSeed(uint32_t newseed); void randomSeed(uint32_t newseed);

Loading…
취소
저장