Group :: System/Configuration/Hardware
RPM: toshset
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: toshset-1.67-alt-gcc34.patch
Download
Download
--- toshset-1.67/cdsMath.cc.orig 2004-09-06 10:21:10 +0600
+++ toshset-1.67/cdsMath.cc 2005-01-25 18:46:00 +0500
@@ -1,6 +1,7 @@
//#include <sthead.hh>
#include <cdsMath.hh>
+#include <stdlib.h>
namespace CDS {
--- toshset-1.67/toshset.cc.orig 2004-09-06 10:21:10 +0600
+++ toshset-1.67/toshset.cc 2005-01-25 18:42:53 +0500
@@ -1048,10 +1048,14 @@
if ((*s)[0]=='0' &&
tolower((*s)[1])=='x') {
IStringStream is( (*s)+2 );
- is >> hex >> reg.ecx;
+ unsigned int t;
+ is >> hex >> t;
+ reg.ecx = t;
} else {
IStringStream is( *s );
- is >> reg.ecx;
+ unsigned int t;
+ is >> hex >> t;
+ reg.ecx = t;
}
cout << "setting lba to " << reg.ecx << '\n';
int ret = HciFunction( ® );
@@ -1094,10 +1098,14 @@
if ((*s)[0]=='0' &&
tolower((*s)[1])=='x') {
IStringStream is( (*s)+2 );
- is >> hex >> reg.ecx;
+ unsigned int t;
+ is >> hex >> t;
+ reg.ecx = t;
} else {
IStringStream is( *s );
- is >> reg.ecx;
+ unsigned int t;
+ is >> t;
+ reg.ecx = t;
}
String type = "invalid";
switch (hibInfoMode) {