moserial r10 - in trunk: . src
- From: mjc svn gnome org
- To: svn-commits-list gnome org
- Subject: moserial r10 - in trunk: . src
- Date: Thu, 12 Mar 2009 14:45:44 +0000 (UTC)
Author: mjc
Date: Thu Mar 12 14:45:44 2009
New Revision: 10
URL: http://svn.gnome.org/viewvc/moserial?rev=10&view=rev
Log:
2009-03-12 Michael J. Chudobiak <mjc svn gnome org>
* src/InputParser.vala:
Fixed HEX entry.
Modified:
trunk/ChangeLog
trunk/src/InputParser.vala
Modified: trunk/src/InputParser.vala
==============================================================================
--- trunk/src/InputParser.vala (original)
+++ trunk/src/InputParser.vala Thu Mar 12 14:45:44 2009
@@ -15,10 +15,11 @@
uchar[] r=new uchar[(len+1)/2];
for(int x=0; x<(len+1)/2; x++) {
unichar c;
- char i;
- char temp;
+ int i;
+ int temp;
c=s.get_char();
+
if(len>1) {
i=xtoi(c)*16;
if(i<0)
@@ -38,7 +39,7 @@
throw new HexParseError.INVALID_INPUT(_("Invalid Input"));
}
s=s.next_char();
- r[x]=i;
+ r[x]=(uchar)i;
}
return r;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]