ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/cfperl.h
(Generate patch)

Comparing deliantra/server/include/cfperl.h (file contents):
Revision 1.67 by root, Sun May 27 23:14:37 2007 UTC vs.
Revision 1.68 by root, Sun May 27 23:22:29 2007 UTC

278 put_string (k, v); 278 put_string (k, v);
279 } 279 }
280 280
281 void put (keyword k, double v) 281 void put (keyword k, double v)
282 { 282 {
283 char buf [128]; 283 force (32);
284 284 ptr += sprintf (ptr, "%.7g", v);
285 snprintf (buf, 128, "%.7g", v);
286
287 put (k, (const char *)buf);
288 } 285 }
289 286
290 void put_(keyword k, sint64 v) 287 void put_(keyword k, sint64 v)
291 { 288 {
292 add (keyword_str [k], keyword_len [k]); 289 add (keyword_str [k], keyword_len [k]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines