@@ -57,7 +57,7 @@ pub fn getstring(
5757 func_code : Vec < String > ,
5858 dev : bool ,
5959 uses : Vec < String > ,
60- int : i32 ,
60+ int : i64 ,
6161) -> Vec < String > {
6262 if dev {
6363 println ! ( "memory_names: {:?}" , memory_names) ;
@@ -132,6 +132,9 @@ pub fn getstring(
132132 let mut skips = 0 ;
133133 let mut parent = 0 ;
134134 let mut output_array = Vec :: new ( ) ;
135+ if dev {
136+ println ! ( "vec: {:?}" , vec) ;
137+ }
135138 for y in 0 ..vec. len ( ) {
136139 if skips == 0 {
137140 if !skip {
@@ -490,7 +493,7 @@ pub fn getstring(
490493 }
491494 skips = leng;
492495 } else if vec[ y] == "random" {
493- imput_s. push_str ( rand:: thread_rng ( ) . gen :: < f32 > ( ) . to_string ( ) . as_str ( ) ) ;
496+ imput_s. push_str ( rand:: thread_rng ( ) . gen :: < f64 > ( ) . to_string ( ) . as_str ( ) ) ;
494497 } else if vec[ y] == "request" {
495498 imput_s. push_str (
496499 request (
@@ -1379,6 +1382,9 @@ pub fn getstring(
13791382 if imput_s. trim ( ) != "" {
13801383 output_array. push ( imput_s. trim ( ) . to_string ( ) ) ;
13811384 }
1385+ if dev {
1386+ println ! ( "output_array: {:?}" , output_array) ;
1387+ }
13821388 output_array
13831389}
13841390
@@ -1491,7 +1497,7 @@ pub fn round(
14911497 func_code : Vec < String > ,
14921498 dev : bool ,
14931499 uses : Vec < String > ,
1494- ) -> i32 {
1500+ ) -> i64 {
14951501 getstring (
14961502 x,
14971503 contents,
@@ -1505,9 +1511,9 @@ pub fn round(
15051511 uses,
15061512 0 ,
15071513 ) [ 0 ]
1508- . parse :: < f32 > ( )
1514+ . parse :: < f64 > ( )
15091515 . unwrap ( )
1510- . round ( ) as i32
1516+ . round ( ) as i64
15111517}
15121518
15131519pub fn split (
@@ -1593,7 +1599,7 @@ pub fn length(
15931599 func_code : Vec < String > ,
15941600 dev : bool ,
15951601 uses : Vec < String > ,
1596- ) -> i32 {
1602+ ) -> i64 {
15971603 getstring (
15981604 x,
15991605 contents,
@@ -1609,7 +1615,7 @@ pub fn length(
16091615 )
16101616 . join ( "zzGVgfHaNtPMe7H9RRyx3rWC9JyyZdMkc2v" )
16111617 . split ( "zzGVgfHaNtPMe7H9RRyx3rWC9JyyZdMkc2v" )
1612- . count ( ) as i32
1618+ . count ( ) as i64
16131619}
16141620
16151621pub fn first (
@@ -2135,17 +2141,17 @@ pub fn time_readable(
21352141 }
21362142}
21372143
2138- pub fn get_line ( x : usize , contents : Vec < String > ) -> i32 {
2144+ pub fn get_line ( x : usize , contents : Vec < String > ) -> i64 {
21392145 let mut line = 1 ;
21402146 for n in 0 ..x {
21412147 if contents[ n] == "\n " {
21422148 line += 1 ;
21432149 }
21442150 }
21452151 if line >= run:: code_to_add ( ) . matches ( '\n' ) . count ( ) {
2146- return ( line - run:: code_to_add ( ) . matches ( '\n' ) . count ( ) + 1 ) as i32 ;
2152+ return ( line - run:: code_to_add ( ) . matches ( '\n' ) . count ( ) + 1 ) as i64 ;
21472153 } else {
2148- ( line + 1 ) as i32
2154+ ( line + 1 ) as i64
21492155 }
21502156}
21512157
0 commit comments