StratifyLabs / sostest

Stratify OS Test Suite
GNU Lesser General Public License v3.0
3 stars 3 forks source link

Add array test #36

Closed shomagan closed 6 years ago

shomagan commented 6 years ago

Did't compile without change in Array.hpp T & at(u32 idx){ if( idx < size_value ){ return m_array[idx]; } //fatal error return 0; //to - for example return m_array[size_value]; } in Array class variable size_value have type "u32," but function size() have "int" at return value

tyler-gilbert commented 6 years ago
const T & at(u32 idx) const {
        if( idx >= size_value ){
            exit_fatal("Array out of bounds");
        }
        return m_array[idx];
    }

The code above will be use to fix the issue with compiling. Nice work!