Skip to content

Commit

Permalink
revert unnecessary rename of macro
Browse files Browse the repository at this point in the history
  • Loading branch information
CommonLoon102 committed Apr 11, 2021
1 parent a6907b4 commit 3a12c33
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ void Game::transformShadowLayer(int delta) {
r = _pwr2_screenTransformLut[_res->_currentScreenResourceNum * 2 + 1];
}
if (r != 0) {
assert(r < ARRAYSIZEH(_screenTransformRects));
assert(r < ARRAYSIZE(_screenTransformRects));
const BoundingBox *b = &_screenTransformRects[r];
const int offset = b->y1 * Video::W + b->x1;
src = _video->_frontLayer + offset;
Expand Down
2 changes: 1 addition & 1 deletion intern.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static const bool kByteSwapData = true;
static const bool kByteSwapData = (__BYTE_ORDER == __BIG_ENDIAN);
#endif

#define ARRAYSIZEH(a) (sizeof(a)/sizeof(a[0]))
#define ARRAYSIZE(a) (sizeof(a)/sizeof(a[0]))
#define PACKED __attribute__((packed))

inline uint16_t READ_LE_UINT16(const void *ptr) {
Expand Down
2 changes: 1 addition & 1 deletion sound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ void Game::setSoundObjectPanning(SssObject *so) {
if (so->pcm == 0) {
return;
}
if ((uint32_t)volume >= ARRAYSIZEH(_volumeRampTable)) {
if ((uint32_t)volume >= ARRAYSIZE(_volumeRampTable)) {
warning("Out of bounds volume %d (filter %d volume %d)", volume, (so->filter->volumeCurrent >> 16), so->volume);
so->panL = 0;
so->panR = 0;
Expand Down

0 comments on commit 3a12c33

Please sign in to comment.