From cf0f0faa24b90ceb7095b19f69314059f9304204 Mon Sep 17 00:00:00 2001 From: Richard Knight Date: Wed, 21 Jul 2021 22:36:54 +0100 Subject: cmake files update --- src/opcodes.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/opcodes.cpp b/src/opcodes.cpp index 1531029..04be9e8 100644 --- a/src/opcodes.cpp +++ b/src/opcodes.cpp @@ -103,17 +103,17 @@ struct sdlinit : csnd::Plugin<4, 4> { sdl->screen_height = ySize; if (SDL_Init(SDL_INIT_VIDEO) < 0) { - throw std::runtime_error(csound->strdup(SDL_GetError())); + throw std::runtime_error(csound->strdup((char*) SDL_GetError())); } SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "1"); sdl->window = SDL_CreateWindow(windowName, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, xSize, ySize, SDL_WINDOW_SHOWN ); if (sdl->window == NULL) { - throw std::runtime_error(csound->strdup(SDL_GetError())); + throw std::runtime_error(csound->strdup((char*) SDL_GetError())); } sdl->renderer = SDL_CreateRenderer(sdl->window, -1, SDL_RENDERER_ACCELERATED); if (sdl->renderer == NULL) { - throw std::runtime_error(csound->strdup(SDL_GetError())); + throw std::runtime_error(csound->strdup((char*) SDL_GetError())); } sdl->initialised = true; } -- cgit v1.2.3