Skip to content

Commit 92b0a57

Browse files
committed
fix char * warning 2
1 parent 95e355c commit 92b0a57

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/app_component.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ void CLAppComponent::dumpPrefs() {
2828

2929
int CLAppComponent::readJsonIntVal(jparse_ctx_t *jctx_ptr, const char* token) {
3030
int res=0;
31-
if(json_obj_get_int(jctx_ptr, token, &res) == OS_SUCCESS)
31+
32+
char * ptr = const_cast<char *>(token);
33+
34+
if(json_obj_get_int(jctx_ptr, ptr, &res) == OS_SUCCESS)
3235
return res;
3336

3437
return 0;

0 commit comments

Comments
 (0)