diff options
author | joye <joye> | 2015-06-24 21:41:43 (GMT) |
---|---|---|
committer | joye <joye> | 2015-06-24 21:41:43 (GMT) |
commit | 0a2c6340848a423fd27745507f467c13d73eba98 (patch) | |
tree | 80100a92ed703cf0b58f978674946db198bca212 /src/bltVecCmd.C | |
parent | 1532d0ed55d2c814c83bb5798eeb34cc25869304 (diff) | |
download | blt-0a2c6340848a423fd27745507f467c13d73eba98.zip blt-0a2c6340848a423fd27745507f467c13d73eba98.tar.gz blt-0a2c6340848a423fd27745507f467c13d73eba98.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src/bltVecCmd.C')
-rw-r--r-- | src/bltVecCmd.C | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bltVecCmd.C b/src/bltVecCmd.C index b5a07ef..e9af214 100644 --- a/src/bltVecCmd.C +++ b/src/bltVecCmd.C @@ -1130,7 +1130,7 @@ static int BinreadOp(Vector *vPtr, Tcl_Interp* interp, } #define BUFFER_SIZE 1024 - int arraySize = (count == 0) ? arraySize = BUFFER_SIZE*size : count*size; + int arraySize = (count == 0) ? BUFFER_SIZE*size : count*size; char* byteArr = (char*)malloc(arraySize); // FIXME: restore old channel translation later? @@ -1239,7 +1239,11 @@ static int RandomOp(Vector *vPtr, Tcl_Interp* interp, int objc, Tcl_Obj* const objv[]) { for (int i = 0; i < vPtr->length; i++) +#ifdef _WIN32 + vPtr->valueArr[i] = double(rand())/RAND_MAX; +#else vPtr->valueArr[i] = drand48(); +#endif if (vPtr->flush) Vec_FlushCache(vPtr); |