OSDN Git Service

[VM][FMGEN][WIN32] Fix warning on psg.
authorKyuma Ohta <whatisthis.sowhat@gmail.com>
Wed, 22 Jul 2015 14:23:37 +0000 (23:23 +0900)
committerKyuma Ohta <whatisthis.sowhat@gmail.com>
Wed, 22 Jul 2015 14:23:37 +0000 (23:23 +0900)
source/src/vm/fmgen/psg.cpp

index 1e7b6c2..47066b5 100644 (file)
@@ -134,7 +134,7 @@ void PSG::MakeEnvelopTable()
                2,2, 2,0, 2,1, 2,3, 1,1, 1,3, 1,2, 1,0,
        };
        static uint8 table2[4] = {  0,  0, 31, 31 };
-       static uint8 table3[4] = {  0,  1, -1,  0 };
+       static uint8 table3[4] = {  0,  1, 255,  0 };
 
        uint* ptr = enveloptable[0];