Sophie

Sophie

distrib > Altlinux > 4.1 > i586 > by-pkgid > 3661ed78377da9ac9cad40715c4c2d72 > files > 2

toshset-1.67-alt1.src.rpm

--- 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( &reg );
@@ -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) {