Raydium 3D Game Engine

Official forum for everything about Raydium, ManiaDrive, MeMak, ...
It is currently Wed Nov 22, 2017 3:56 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: C guile or mistake ?
PostPosted: Tue Dec 03, 2013 8:50 pm 
Offline

Joined: Sun Oct 09, 2005 10:46 pm
Posts: 759
Hello,

Looking in web.c code line 119 :
Code:
fstr = (char *)0;


I expect to see:
Code:
fstr = NULL;


on line 133: fstr is compared to 0 again.

Did i miss something in this particular case ?

Should i correct this to NULL ?

Have a nice day.
Ouille.


Top
 Profile  
 
 Post subject: Re: C guile or mistake ?
PostPosted: Thu Dec 05, 2013 8:10 pm 
Offline
User avatar

Joined: Sun Mar 16, 2003 2:53 am
Posts: 2590
Location: gnniiiii (Scrat)
Hi !

Both are correct. NULL is supposed to be defined as (void *)0, so it's just a matter of implicit casting. Change to NULL you want ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group