History

update long/t_CKINT mismatches; address windows 64-bit warnings

Ge Wang committed 4 years ago

Commit bd96b1b1 parent 72e554b24 files · +189 −176Browse files

Showing the changes to src/core/chuck_utils.cpp (1 of 24 files). Show all

Unified · Split

src/core/chuck_utils.cpp+2−1
@@ -58,7 +58,8 @@ void * checked_malloc( int len ) · 57 unmodified lines
5858
5959 c_str cc_str( char * s )
6060 {
61− c_str p = (c_str)checked_malloc( strlen(s)+1 );
61+ t_CKINT len = strlen(s) + 1;
62+ c_str p = (c_str)checked_malloc( len );
6263 strcpy( p, s );
6364
6465 return p;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t