From 11d218f9566df638af256e7b162360d68109a426 Mon Sep 17 00:00:00 2001 From: Eric Scharff Date: Thu, 28 Feb 2008 10:03:24 -0700 Subject: [PATCH] Slight fix for improved type safety --- classpath/java-lang.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classpath/java-lang.cpp b/classpath/java-lang.cpp index f23464fc12..be5b7408aa 100644 --- a/classpath/java-lang.cpp +++ b/classpath/java-lang.cpp @@ -449,7 +449,7 @@ Java_java_lang_Double_doubleFromString(JNIEnv*e, jclass, jstring s, { const char* chars = e->GetStringUTFChars(s, 0); double d = 0.0; - int numRead = 0; + jint numRead = 0; if (chars) { char* lastRead; @@ -481,7 +481,7 @@ Java_java_lang_Float_floatFromString(JNIEnv*e, jclass, jstring s, { const char* chars = e->GetStringUTFChars(s, 0); float f = 0.0; - int numRead = 0; + jint numRead = 0; if (chars) { char* lastRead;