OSDN Git Service
(root)
/
csp-qt
/
common_source_project-fm7.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b6f18a
)
[VM][FMGEN] Fix crash with GCC-5.This is issue of optimization, add "volatile" to...
author
K.Ohta
<whatisthis.sowhat@gmail.com>
Tue, 7 Mar 2017 06:39:21 +0000
(06:39 +0000)
committer
K.Ohta
<whatisthis.sowhat@gmail.com>
Tue, 7 Mar 2017 06:39:21 +0000
(06:39 +0000)
source/src/vm/fmgen/fmgen.cpp
patch
|
blob
|
history
diff --git
a/source/src/vm/fmgen/fmgen.cpp
b/source/src/vm/fmgen/fmgen.cpp
index
97ccdf2
..
1efb7c9
100644
(file)
--- a/
source/src/vm/fmgen/fmgen.cpp
+++ b/
source/src/vm/fmgen/fmgen.cpp
@@
-170,7
+170,7
@@
namespace FM
// fixed equasion-based tables
int pmtable[2][8][FM_LFOENTS];
- uint amtable[2][4][FM_LFOENTS];
+ uint
volatile
amtable[2][4][FM_LFOENTS];
static bool tablemade = false;
}
@@
-201,7
+201,7
@@
void MakeLFOTable()
// 1.000963
// lfofref[level * max * wave];
// pre = lfofref[level][pms * wave >> 8];
- static const uint8 amt[2][4] =
+ static const
volatile
uint8 amt[2][4] =
{
{ 31, 6, 4, 3 }, // OPNA
{ 31, 2, 1, 0 }, // OPM