equal
deleted
inserted
replaced
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 */ |