From dc5d4812cf362aa2745df07c3d2434987f9b59a1 Mon Sep 17 00:00:00 2001 From: "wchang0222%aol.com" Date: Wed, 11 Feb 2004 19:43:29 +0000 Subject: Bugzilla bug 229297: fixed compiler warning "conversion from 'double' to 'long', possible loss of data". r=jpierre,relyea. --- security/nss/lib/crmf/crmfdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'security/nss') diff --git a/security/nss/lib/crmf/crmfdec.c b/security/nss/lib/crmf/crmfdec.c index cce945e6d..994967eec 100644 --- a/security/nss/lib/crmf/crmfdec.c +++ b/security/nss/lib/crmf/crmfdec.c @@ -346,7 +346,7 @@ CRMF_CreateCertReqMessagesFromDER(const char *buf, long len) /* Wanna make sure the arena is big enough to store all of the requests * coming in. We'll guestimate according to the length of the buffer. */ - arenaSize = len * 1.5; + arenaSize = len + len/2; poolp = PORT_NewArena(arenaSize); if (poolp == NULL) { return NULL; -- cgit v1.2.1