diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2008-12-19 23:52:39 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2008-12-19 23:52:39 (GMT) |
commit | a91196104ba8d58ec2fe995caf1b256cc67f9588 (patch) | |
tree | 38cb4c3c6a337136d75f763512678550b05c0aaf | |
parent | 8dab340933bc44e98aa3c17a7bd5fe4c861cff25 (diff) |
fix gcc warnings
-rw-r--r-- | common/Util/Clooper/aclient.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/Util/Clooper/aclient.cpp b/common/Util/Clooper/aclient.cpp index 213d72e..a2ce240 100644 --- a/common/Util/Clooper/aclient.cpp +++ b/common/Util/Clooper/aclient.cpp @@ -248,7 +248,7 @@ struct Loop } } tick_prev = tick; - if (_debug && (VERBOSE>1) && (events >= STEP_eventMax)) fprintf(_debug, "WARNING: %i/%i events at once (%i, %i)\n", events,ev.size(),loop0,loop1); + if (_debug && (VERBOSE>1) && (events >= STEP_eventMax)) fprintf(_debug, "WARNING: %i/%i events at once (%i, %i)\n", events, (int)ev.size(),loop0,loop1); ++steps; } void addEvent(int id, char type, MYFLT * p, int np, bool in_ticks, bool active) @@ -548,7 +548,7 @@ struct TamTamSound csound = csoundCreate(NULL); int argc=3; - char **argv = (char**)malloc(argc*sizeof(char*)); + const char **argv = (const char**)malloc(argc*sizeof(char*)); argv[0] = "csound"; argv[1] = "-m0"; argv[2] = orc; @@ -557,7 +557,7 @@ struct TamTamSound //csoundInitialize(&argc, &argv, 0); csoundPreCompile(csound); csoundSetHostImplementedAudioIO(csound, 1, csound_period_size); - int result = csoundCompile(csound, argc, &(argv[0])); + int result = csoundCompile(csound, argc, (char**)argv); if (result) { csound = NULL; |