From 62df7c0b60947af44e3f9f158eaeb36c4dedccf5 Mon Sep 17 00:00:00 2001 From: David Capello Date: Sat, 17 Dec 2011 10:38:26 -0300 Subject: [PATCH] Fix error in rotate.cpp using template argument subtype without typename keyword. --- src/raster/rotate.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/raster/rotate.cpp b/src/raster/rotate.cpp index 9e1e0dfe9..045d51496 100644 --- a/src/raster/rotate.cpp +++ b/src/raster/rotate.cpp @@ -132,13 +132,13 @@ static void draw_scanline(Image *bmp, Image *spr, fixed l_spr_x, fixed l_spr_y, fixed spr_dx, fixed spr_dy) { - Traits::address_t addr, end_addr; - Traits::address_t* spr_line = (Traits::address_t*)spr->line; + typename Traits::address_t addr, end_addr; + typename Traits::address_t* spr_line = (typename Traits::address_t*)spr->line; Delegate delegate; r_bmp_x >>= 16; l_bmp_x >>= 16; - addr = ((Traits::address_t*)bmp->line)[bmp_y_i]; + addr = ((typename Traits::address_t*)bmp->line)[bmp_y_i]; end_addr = addr + r_bmp_x; addr += l_bmp_x;