jdk/src/share/native/common/check_format.c
changeset 1090 c5805b1672a6
parent 2 90ce3da70b43
child 5506 202f599c92aa
equal deleted inserted replaced
1089:12e2f9ad0367 1090:c5805b1672a6
     1 /*
     1 /*
     2  * Copyright 1997-2006 Sun Microsystems, Inc.  All Rights Reserved.
     2  * Copyright 1997-2008 Sun Microsystems, Inc.  All Rights Reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Sun designates this
     7  * published by the Free Software Foundation.  Sun designates this
   244         }
   244         }
   245     } else {
   245     } else {
   246         /* skip over the fieldname.  Slashes are okay */
   246         /* skip over the fieldname.  Slashes are okay */
   247         p = skip_over_fieldname(name, JNI_TRUE, length);
   247         p = skip_over_fieldname(name, JNI_TRUE, length);
   248     }
   248     }
   249     return (p != 0 && p - name == length);
   249     return (p != 0 && p - name == (ptrdiff_t)length);
   250 }
   250 }
   251 
   251 
   252 /*
   252 /*
   253  * Translates '.' to '/'.  Returns JNI_TRUE is any / were present.
   253  * Translates '.' to '/'.  Returns JNI_TRUE is any / were present.
   254  */
   254  */