blueloveTH 2 lat temu
rodzic
commit
58adfe6d17
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/str.h

+ 1 - 1
src/str.h

@@ -118,7 +118,7 @@ struct Str{
     }
     }
 
 
     friend std::ostream& operator<<(std::ostream& os, const Str& str){
     friend std::ostream& operator<<(std::ostream& os, const Str& str){
-        if(str.data!=nullptr) os.write(str.data, str.size);
+        os.write(str.data, str.size);
         return os;
         return os;
     }
     }