mirror of
https://github.com/NoelFB/blah.git
synced 2026-10-05 15:49:23 +08:00
fixing c standard lib includes
This commit is contained in:
1 parent
a5f9701ce6
commit
30d7f2ee66
6 files changed
+7
-3
No files matched your search
@@ -5,6 +5,7 @@
|
||||
#include <stddef.h> // for std::size_t
|
||||
#include <stdlib.h> // for abort
|
||||
#include <stdarg.h> // for string format methods
|
||||
#include <stdio.h> // for vsnprintf
|
||||
#include <math.h> // for standard lib math functions used in blah_calc.h
|
||||
|
||||
// Numeric Types
|
||||
|
||||
@@ -17,13 +17,13 @@ namespace Blah
|
||||
|
||||
char& operator[](int index)
|
||||
{
|
||||
BLAH_ASSERT(index >= 0 && index < length(), "Index out of range");
|
||||
BLAH_ASSERT(index >= 0 && index < length() + 1, "Index out of range");
|
||||
return s_ptr()[index];
|
||||
}
|
||||
|
||||
const char& operator[](int index) const
|
||||
{
|
||||
BLAH_ASSERT(index >= 0 && index < length(), "Index out of range");
|
||||
BLAH_ASSERT(index >= 0 && index < length() + 1, "Index out of range");
|
||||
return s_ptr()[index];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user