adlmidi/adlmidi-fix-arm.patch

21 lines
1.1 KiB
Diff

--- adlmidi-1.2.6.2/puzzlegame.inc.orig 2020-10-06 10:37:55.001815403 +0200
+++ adlmidi-1.2.6.2/puzzlegame.inc 2020-10-06 10:38:10.965969535 +0200
@@ -31,7 +31,7 @@ namespace ADLMIDI_PuzzleGame
static unsigned long TimerRead()
{
- static std::chrono::time_point<std::chrono::system_clock> begin = std::chrono::system_clock::now();
+ static std::chrono::time_point<std::chrono::system_clock> begin = std::chrono::system_clock::now();
return 519 * std::chrono::duration<double>( std::chrono::system_clock::now() - begin ).count();
}
#define Timer TimerRead()
@@ -376,7 +376,7 @@ namespace ADLMIDI_PuzzleGame
// Find out the extents of this piece, and how many
// cells of the piece contribute into full (completed) rows.
- char full[4]={-1,-1,-1,-1};
+ signed char full[4]={-1,-1,-1,-1};
int miny=n.y+9, maxy=n.y-9, minx=n.x+9, maxx=n.x-9, num_eroded=0;
n>[&](int x,int y) -> bool
{ if(x < minx) {minx = x;} if(x > maxx) {maxx = x;}