Revision: 55648
http://sourceforge.net/p/brlcad/code/55648
Author: brlcad
Date: 2013-06-04 03:38:52 +0000 (Tue, 04 Jun 2013)
Log Message:
-----------
the ctype functions technically take an 'int' derived from an unsigned char, so
netbsd is appropriately warning about the danger passing a signed char. we
know these are strings, so casting to unsigned char is sufficient to quell.
Modified Paths:
--------------
brlcad/trunk/src/libbu/units.c
Modified: brlcad/trunk/src/libbu/units.c
===================================================================
--- brlcad/trunk/src/libbu/units.c 2013-06-04 03:24:27 UTC (rev 55647)
+++ brlcad/trunk/src/libbu/units.c 2013-06-04 03:38:52 UTC (rev 55648)
@@ -183,28 +183,28 @@
name = "";
/* skip spaces */
- while (isspace(*input))
+ while (isspace((unsigned char)*input))
input++;
- while (isspace(*name))
+ while (isspace((unsigned char)*name))
name++;
/* quick exit */
- if (tolower(input[0]) != tolower(name[0]))
+ if (tolower((unsigned char)input[0]) != tolower((unsigned char)name[0]))
return 0;
cp = input;
/* skip spaces, convert to lowercase */
while (*cp != '\0') {
- if (!isspace(*cp))
- bu_vls_putc(&normalized_input, tolower(*cp));
+ if (!isspace((unsigned char)*cp))
+ bu_vls_putc(&normalized_input, tolower((unsigned char)*cp));
cp++;
}
cp = name;
/* skip spaces, convert to lowercase */
while (*cp != '\0') {
- if (!isspace(*cp))
- bu_vls_putc(&normalized_name, tolower(*cp));
+ if (!isspace((unsigned char)*cp))
+ bu_vls_putc(&normalized_name, tolower((unsigned char)*cp));
cp++;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits