[Python-checkins] r77690 - python/branches/py3k-cdecimal/Modules/cdecimal/memory.c
stefan.krah
python-checkins at python.org
Fri Jan 22 17:14:26 CET 2010
Author: stefan.krah
Date: Fri Jan 22 17:14:26 2010
New Revision: 77690
Log:
Code formatting. Fix Visual Studio warnings.
Modified:
python/branches/py3k-cdecimal/Modules/cdecimal/memory.c
Modified: python/branches/py3k-cdecimal/Modules/cdecimal/memory.c
==============================================================================
--- python/branches/py3k-cdecimal/Modules/cdecimal/memory.c (original)
+++ python/branches/py3k-cdecimal/Modules/cdecimal/memory.c Fri Jan 22 17:14:26 2010
@@ -120,7 +120,8 @@
/* struct hack realloc with overflow checking */
void *
-mpd_sh_realloc(void *ptr, mpd_size_t struct_size, mpd_size_t nmemb, mpd_size_t size, uint8_t *err)
+mpd_sh_realloc(void *ptr, mpd_size_t struct_size, mpd_size_t nmemb,
+ mpd_size_t size, uint8_t *err)
{
void *new;
mpd_size_t req;
@@ -154,7 +155,10 @@
return NULL;
}
- result->flags = result->exp = result->digits = result->len = 0;
+ result->flags = 0;
+ result->exp = 0;
+ result->digits = 0;
+ result->len = 0;
result->alloc = size;
return result;
More information about the Python-checkins
mailing list