commit 7d4f90626b8d1c7e8548269341b1358e8190b0b5 parent 7fd95f1d7cd15d4e5c88758ca2ebf817359ea7af Author: Michael Savage <mikejsavage@gmail.com> Date: Mon Oct 17 20:35:02 +0300 Const madness Diffstat:
intrinsics.h | | | 2 | +- |
diff --git a/intrinsics.h b/intrinsics.h @@ -134,7 +134,7 @@ inline u8 * file_get_contents( const char * path, size_t * out_len = NULL ) { fseek( file, 0, SEEK_SET ); // TODO: oh-no-verflow - u8 * contents = ( u8 * const ) malloc( len + 1 ); + u8 * contents = ( u8 * ) malloc( len + 1 ); size_t bytes_read = fread( contents, 1, len, file ); contents[ len ] = '\0'; assert( bytes_read == len );