Browse code

fixed casting issue with 64bit arch.

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@1768 689a6050-402a-0410-94f2-e92a70836424

Elias Baixas authored on 08/03/2007 12:37:52
Showing 1 changed files
... ...
@@ -211,7 +211,7 @@ int encode_header(struct sip_msg *sipmsg,struct hdr_field *hdr,unsigned char *pa
211 211
 	       goto error;
212 212
 	    }
213 213
 	 }
214
-	 if((len=encode_content_type(hdr->name.s,hdr->len,(unsigned int)hdr->parsed,(char*)(payload+5)))<0){
214
+	 if((len=encode_content_type(hdr->name.s,hdr->len,(unsigned int)(long int)hdr->parsed,(char*)(payload+5)))<0){
215 215
 	    myerror="encoding via header\n";
216 216
 	    goto error;
217 217
 	 }else{