comparison stb_image.c @ 24:b0f1b8544b62

Silence some warnings.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 28 Sep 2012 15:45:23 +0300
parents 32250b436bca
children 43c985265fd5
comparison
equal deleted inserted replaced
21:49cc9a173427 24:b0f1b8544b62
810 { 810 {
811 uint32 z = get16(s); 811 uint32 z = get16(s);
812 return (z << 16) + get16(s); 812 return (z << 16) + get16(s);
813 } 813 }
814 814
815 #ifdef STBI_CRAP_FORMATS
815 static int get16le(stbi *s) 816 static int get16le(stbi *s)
816 { 817 {
817 int z = get8(s); 818 int z = get8(s);
818 return z + (get8(s) << 8); 819 return z + (get8(s) << 8);
819 } 820 }
821 static uint32 get32le(stbi *s) 822 static uint32 get32le(stbi *s)
822 { 823 {
823 uint32 z = get16le(s); 824 uint32 z = get16le(s);
824 return z + (get16le(s) << 16); 825 return z + (get16le(s) << 16);
825 } 826 }
827 #endif
826 828
827 ////////////////////////////////////////////////////////////////////////////// 829 //////////////////////////////////////////////////////////////////////////////
828 // 830 //
829 // generic converter from built-in img_n to req_comp 831 // generic converter from built-in img_n to req_comp
830 // individual types do this automatically as much as possible (e.g. jpeg 832 // individual types do this automatically as much as possible (e.g. jpeg