summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generic/tclBasic.c8
-rw-r--r--generic/tclZipfs.c8
-rw-r--r--tests/zipfs.test2
3 files changed, 9 insertions, 9 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index 4f43ca5..83f6b4e 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -69,7 +69,7 @@
* compatible with AddressSanitizer (ASan) use-after-return detection.
*/
-#if defined(HAVE_INTRIN_H)
+#if defined(_MSC_VER) && defined(HAVE_INTRIN_H)
#include <intrin.h> /* for _AddressOfReturnAddress() */
#endif
@@ -84,10 +84,10 @@
void *
TclGetCStackPtr(void)
{
-#if defined(HAVE_INTRIN_H)
- return _AddressOfReturnAddress();
-#elif __GNUC__ || __has_builtin(__builtin_frame_address)
+#if defined( __GNUC__ ) || __has_builtin(__builtin_frame_address)
return __builtin_frame_address(0);
+#elif defined(_MSC_VER) && defined(HAVE_INTRIN_H)
+ return _AddressOfReturnAddress();
#else
ptrdiff_t unused = 0;
/*
diff --git a/generic/tclZipfs.c b/generic/tclZipfs.c
index f2bdaa9..25929d1 100644
--- a/generic/tclZipfs.c
+++ b/generic/tclZipfs.c
@@ -244,13 +244,13 @@ typedef struct ZipEntry {
} ZipEntry;
/*
- * File channel for file contained in mounted ZIP archive.
+ * File channel for file contained in mounted ZIP archive.
*
- * Regarding data buffers:
+ * Regarding data buffers:
* For READ-ONLY files that are not encrypted and not compressed (zip STORE
* method), ubuf points directly to the mapped zip file data in memory. No
- * additional storage is allocated and so ubufToFree is NULL.
- *
+ * additional storage is allocated and so ubufToFree is NULL.
+ *
* In all other combinations of compression and encryption or if channel is
* writable, storage is allocated for the decrypted and/or uncompressed data
* and a pointer to it is stored in ubufToFree and ubuf. When channel is
diff --git a/tests/zipfs.test b/tests/zipfs.test
index 37f8156..6d5d461 100644
--- a/tests/zipfs.test
+++ b/tests/zipfs.test
@@ -1123,7 +1123,7 @@ namespace eval test_ns_zipfs {
close $fd
file size [file join $defMountPt test]
} -result 10000000
-
+
test zipfs-write-size-limit-3 "Writes incrementally - buffer growth" -setup {
mount [zippath test.zip]
} -cleanup {