ridiculousfish / libdivide

Official git repository for libdivide: optimized integer division
http://libdivide.com
Other
1.09k stars 77 forks source link

Correct -Wshadow warning #42

Closed tbates-redarc closed 6 years ago

tbates-redarc commented 6 years ago
libdivide/libdivide.h: In function 'libdivide_s32_do':
libdivide/libdivide.h:1275:21: warning: declaration of 'sign' shadows a previous local [-Wshadow]
             int32_t sign = (int8_t)more >> 7;
                     ^~~~
libdivide/libdivide.h:1263:14: note: shadowed declaration is here
     uint32_t sign = (int8_t)more >> 7;
              ^~~~
ridiculousfish commented 6 years ago

Thanks!