Skip to content
Snippets Groups Projects
Commit 5c3fae51 authored by Moe Jette's avatar Moe Jette
Browse files

Change some type casting for clean AIX build

parent 9c27e87a
No related branches found
No related tags found
No related merge requests found
......@@ -264,7 +264,8 @@ wiki_request_t::compose_response( wiki_request_t *request,
}
break;
case 'i':
if ( (*(int16_t *) val) != NO_VAL ) {
if ( (uint16_t) (*(int16_t *) val) !=
(uint16_t) NO_VAL ) {
str += field_str;
str += "=";
str += (*(int16_t *) val);
......@@ -281,7 +282,8 @@ wiki_request_t::compose_response( wiki_request_t *request,
break;
case 'u':
if ( (*(uint16_t *) val) != NO_VAL ) {
if ( (uint16_t) (*(uint16_t *) val) !=
(uint16_t) NO_VAL ) {
str += field_str;
str += "=";
str += (*(uint16_t *) val);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment