Przeglądaj źródła

Fixed warning in GCC

Benoit Blanchon 11 lat temu
rodzic
commit
49025d322f
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/Internals/IndentedPrint.cpp

+ 1 - 1
src/Internals/IndentedPrint.cpp

@@ -17,7 +17,7 @@ void IndentedPrint::unindent() {
 }
 
 void IndentedPrint::setTabSize(uint8_t n) {
-  if (n < MAX_TAB_SIZE) tabSize = n;
+  if (n < MAX_TAB_SIZE) tabSize = n & MAX_TAB_SIZE;
 }
 
 size_t IndentedPrint::write(uint8_t c) {