Skip to content

Commit

Permalink
use c23
Browse files Browse the repository at this point in the history
  • Loading branch information
aiq committed Dec 31, 2024
1 parent 5644d95 commit 21534c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/clingo/string/CDictionary.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ CLINGO_API inline CString* get_via_chars_from_dictionary_c( CDictionary* dict,
must_exist_c_( dict );

CString* keyStr = retain_c( make_string_c( key ) );
if ( !keyStr ) return false;
if ( !keyStr ) return NULL;

CString* result = get_from_dictionary_c( dict, keyStr );
release_c( keyStr );
Expand Down
2 changes: 1 addition & 1 deletion mk/cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required( VERSION 3.2 )

project( clingo VERSION 0.1.0 LANGUAGES C )
set( CMAKE_C_STANDARD 11 )
set( CMAKE_C_STANDARD 23 )
set( CMAKE_C_STANDARD_REQUIRED ON )
set( CMAKE_C_EXTENSIONS OFF )

Expand Down

0 comments on commit 21534c9

Please sign in to comment.